In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Ubuntu management and related commands which have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
Ubuntu management
The software package manager dpkg of Debian is used to Ubuntu the software package, which is similar to RPM. All the packages information in the system is in / var/lib/dpkg/
Directory, its subdirectory / var/lib/dpkg/info is used to hold the list of configuration files for each package:
(1). Conffiles records a list of configuration files for the software package
(2). List saves the list of files in the package, and the user can find the specific installation location of the files in the package from the information in the .list.
(3). Md5sums records the md5 information of the package, which is used for package verification.
(4). The prerm script runs before the Debian package is unpackaged, and its main function is to stop the service acting on the software package that is about to be upgraded until the package is installed or upgraded.
(5). The postinst script is used to complete the configuration after unlocking the Debian package, which is usually used to execute commands related to the installed package and restart the service.
The content of the / var/lib/dpkg/available file is the description of the software package, which includes all packages in the Debian installation source currently used by the system
This includes installed and uninstalled software packages on the current system.
The / var/cache/apt/archives directory is the temporary storage path for software packages when installing software with apt-get install
/ etc/apt/sources.list stores software source sites, and when you execute sudo apt-get install xxx, Ubuntu management goes to these sites to download the software package locally and perform the installation
Examples of related commands:
(1) check the installation content of a software package dpkg-L xxx
(2) find the software package apt-cache search regular expression in the software library
(3) display the statistical information of the system installation package apt-cache stats
(4) display the name of all available software packages of the system apt-cache pkgnames
(5) display the details of a software package apt-cache show xxx
(6) find out which package apt-file search xxx a file belongs to
(7) check which packages dpkg-l have been installed
(8) query which software packages apt-cache depends xxx a software depends on
(9) query which software packages depend on apt-cache rdepends xxx
(10) add a CD source sudo apt-cdrom add
Note: as the name implies, when installing the update package, let it first find it from the Ubuntu management CD (if you can't install / update online, but have DVD ISO managed by Ubuntu, this will be very useful to you)
Thank you for reading this article carefully. I hope the article "what are the Ubuntu Management and related orders" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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
© 2024 shulou.com SLNews company. All rights reserved.