Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Linux apt

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "the use of Linux apt". In the daily operation, I believe that many people have doubts about the use of Linux apt. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about the use of Linux apt. Next, please follow the editor to study!

It is relatively easy to use: using Linux apt on redhat is almost exactly the same as using debian. The configuration file can be used and updated with RPM updates provided by redhat and updates provided by freshrpms.net after / etc/apt/, has installed Linux apt as described above. The main running commands are as follows:

Update the software list to get the software list and interdependence list on the remote rpm server. The download addresses of all available software are defined in / etc/apt/sources.list, and most of the download operation addresses below are also defined here.

[root@linux root] # apt-get update

(2) check the validity of the local software dependency relationship. Due to the problems of the rpm system, many systems will have some dependency problems. Check the dependency relationship with the following command, and Linux apt-get will provide some repair solutions. Only when there is no dependency problem can you use apt-rpm well. A newly installed clean system will not have dependency problems.

[root@linux root] # apt-get check

(3) install or upgrade a new software

[root@linux root] # apt-get install package-name

Package-name is the first part of the name of the rpm package and does not contain the version number. If you choose a different processor type, you can add a flag such as @ i686 after it.

(4) upgrade all system software

[root@linux root] # apt-get upgrade

(5) upgrade in an all-round way, which is more intelligent than upgrade, and at the same time solve some dependencies during upgrade.

[root@linux root] # apt-get dist-upgrade

(6) Uninstall the software while uninstalling the dependent software

[root@linux root] # apt-get remove package-name

(7) clear the rpm package downloaded locally, and save the rpm package under / var/cache/apt/archieves after downloading. This command clears the downloaded and installed rpm files.

[root@linux root] # apt-get clean

All the above commands can be completed through the front-end software Synaptic of the graphical interface, and the graphical software is more intuitive to use. If you understand the previous major commands, you can use Synaptic without difficulty, so this article will not repeat the use of Synaptic.

# apt-get update / / Update Software list

# apt-get upgrade / / upgrade all system softwar

# apt-get check / / check dependencies

# apt-get-f install / / resolve dependency issues

# apt-cache showpkg / / display some general information of the software package

# apt-cache show// displays the record information of the specified software package. Similar to rpm-qi

# apt-cache depends / / shows the dependencies of software packages

# apt-cache pkgnames / / list all software packages

# apt-config dump / / displays the current configuration information.

If you want to install a tool, such as iftop, you can do this:

# apt-cache search iftop

# apt-get install iftop

Linux apt automatically solves the dependency problem, which is very convenient.

Note that you need to import the signatures of the corresponding database. After downloading GPG key at the relevant site, import it with the following command:

# rpm-import TheKey_youDownload

If you have the patience to read here, you can find that pirated users or friends who are testing with RHEL can upgrade through this-otherwise RHEL up2date will always ask you to enter authentication information.

Reference information

APT-howto

-http://www.debian.org/doc/manuals/apt-howto/index.en.html

For other versions of APT usage problems and some tips, please see here:

Http://dag.wieers.com/home-made/apt/FAQ.php

Http://www2.uni-klu.ac.at/support/Redhat

Http://linuxwiki.de/apt/RedHat

Http://apt4rpm.sourceforge.net/

Ftp://rpmfind.net/linux/freshrpms/redhat/9/apt/apt-0.5.5cnc6-fr1.i386.rpm

[root@mailman src] # rpm-ivh apt-0.5.5cnc6-fr1.i386.rpm

At this point, the study of "how to use Linux apt" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report