In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use apt-get under Ubuntu". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to use apt-get under Ubuntu".
Commonly used APT command parameters
Apt-cache search package search package
Apt-cache show package gets information about the package, such as description, size, version, etc.
Sudo apt-get install package installation package
Sudo apt-get install package-- reinstall reinstall package
Sudo apt-get-f install repair installation "- f =-- fix-missing"
Sudo apt-get remove package delete package
Sudo apt-get remove package-- purge delete packages, including deletion of configuration files, etc.
Sudo apt-get update update source
Sudo apt-get upgrade updates installed packages
Sudo apt-get dist-upgrade upgrade system
Sudo apt-get dselect-upgrade uses dselect to upgrade
Apt-cache depends package understands using dependencies
Apt-cache rdepends package is to see which packages the package is dependent on.
Compilation environment related to sudo apt-get build-dep package installation
Apt-get source package downloads the source code of the package
Sudo apt-get clean & & sudo apt-get autoclean cleans up useless packages
Sudo apt-get check checks for corrupted dependencies
Where:
1 the indication of having SUDO requires administrator privileges!
2 after the command in UBUNTU, the short parameter is extracted with "-", and the long parameter is extracted with "-".
3 Command help information can be viewed in the form of man command or
Command-H (--help) view
4 if you need to exit the command in the MAN command, please press the "Q" key!
The function of option meaning
Sudo-h Help lists how to use, exit.
Sudo-V Version displays version information and exits.
Sudo-l List lists the commands that the current user can execute. Only users in sudoers can use this option.
Sudo-u username | # uid User executes the command as the specified user. The following user is a user other than root, which can be a user name or # uid.
Sudo-k Kill clears the time on the admission Volume and enter the password the next time you use sudo.
Sudo-K Sure kill is similar to-k, but it also tears up the "entry volume", that is, deleting the timestamp file.
Sudo-b command Background executes the specified command in the background.
Sudo-p prompt command Prompt can change the prompt asking for a password, where% u will be replaced with the user account name and% h will display the host name. A very humane design.
Sudo-e file Edit does not execute the command, but modifies the file, which is equivalent to the command sudoedit.
At this point, I believe you have a deeper understanding of "the use of apt-get under Ubuntu". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.