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

Summary of apt commands under Linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains the summary of apt commands under Linux. The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the summary of apt commands under Linux.

The headache for administrators in Linux system maintenance is the dependence between software packages. It is often that you want to install A software, but when compiling, it tells you that you need B software before installing X software, and when you install Y software, you need Z library again-- it is not easy to install Z library, and found that there is something wrong with the version. Maybe many friends have had this experience.

1.Linux apt Command update

Update the local database of the local apt-get to synchronize with the server's pkglist file. It is generally necessary to execute this command to achieve consistency with the server before upgrading.

2.Linux apt Command check

Verify the integrity of the local system.

3.Linux apt Command upgrade

Similar to apt-get, but will install all the basic packages, and try to upgrade all packages, and install new packages if necessary.

4.Linux apt Command install package_name

Install a software package and its related packages

Such as apt-get install openssh

Not only will openssh be installed, but openssl will also be upgraded.

5.Linux apt Command remove package_name

Delete the package and delete packages that depend on it

6.Linux apt Command source package_name

Download the source rpm of the package

Example: apt-get source-compile zhcon

Grab the rpm that source rpm compiled into binary. -- compile parameter function is equivalent to rpm-ba

7.Linux apt Command clean

Delete downloaded software packages saved in the cache directory (/ var/cache/apt/archives)

8.Linux apt Command upgrade package_name

Upgrades the specified package and upgrades its dependent package.

After installing the system, you can use apt-cdrom to add three installation CDs to apt's sources.list

Thank you for reading, the above is the content of "summary of apt commands under Linux". After the study of this article, I believe you have a deeper understanding of the summary of apt commands under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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