Apt-get is a Linux command for the Deb package managed operating system that is used to automatically search, install, upgrade, uninstall software, or the operating system from the Internet's software warehouse.
Apt-get Update
Run the command after modifying/etc/apt/sources.list or/etc/apt/preferences. In addition, you need to run this command regularly to ensure that your package list is up-to-date.
Ubuntu apt Command parameters specifically describes the Ubuntu apt command parameters, let us understand the use of the Ubuntu Apt command parameters, we hope to be useful. Ubuntu is a fully Linux-based operating system that is freely available and provides community and professional support.
Common ubuntu Apt Command parameters
Apt-cache Search Package
Apt-cache Show package for information about packages, such as description, size, version, etc.
sudo apt-get install package
sudo apt-get Install package--Reinstall reinstall packages
sudo apt-get-f Install repair Installation "-F =--fix-missing"
sudo apt-get Remove Package
sudo apt-get Remove Package--purge delete packages, including deletion of configuration files, etc.
sudo apt-get update source
sudo apt-get upgrade update installed packages
sudo apt-get Dist-upgrade upgrade system
sudo apt-get dselect-upgrade using Dselect upgrade
Apt-cache depends package learn about using dependencies
Apt-cache Rdepends package is to see which packages are dependent on
sudo apt-get BUILD-DEP Package Installation-related compilation environment
Apt-get Source Package Downloads The source code for the bundle
sudo apt-get clean && sudo apt-get autoclean cleanup of useless packages
sudo apt-get check to see if there is a corrupted dependency
which
1 with sudo means admin privileges required!
2 in ubuntu command after the parameter is a short parameter is the "-" derivation, long parameters with "--" leads
3 command Help information can be viewed in the way of the man command or
Command-H (--help) mode view
4 in the man command need to quit the command help please press "Q" Key!!
Ubuntu apt option meaning function
Sudo-h help lists how to use, exit.
Sudo-v version Displays the release information and exits.
Sudo-l list lists the commands that the current user can execute. This option is available only to users in Sudoers.
Sudo-u username| #uid User executes the command as specified. The following users are other than root, which can be either a user name or a #uid.
Sudo-k Kill clears the time on the "entry volume" and enters the password again the next time you use sudo.
Sudo-k sure Kill is similar to-K, but it also rips the "entry volume", which is to delete the timestamp file.
Sudo-b command Background executes the specified commands in the background.
Sudo-p prompt command Prompt can change the prompt to ask for a password, where%u is substituted for the user account name and%h displays the host name. Very user-friendly design.
SUDO-E file edit is not the execution of a command, but rather a modification of the document, equivalent to command sudoedit.
Above ubuntu apt Command parameter introduction
Ubuntu apt Command parameters (RPM)