In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Whsle wholesale Cheap discount,Authentic Authentic Jordan 1 Shoes Discount Authentic Air Jordan Shoe
© 2024 shulou.com SLNews company. All rights reserved.