Detailed description of Ubuntuapt command parameters

Source: Internet
Author: User
Detailed description of Ubuntu command parameters apt-cachesearchpackage search package apt-cacheshowpackage obtains information about the package, such as description, size, and version sudoapt-getinstallpackage installation package sudoapt-getinsta... for details about Ubuntu apt command parameters, see apt-cache search package apt-cache show package to obtain package information, for example, sudo apt-get install package installation package sudo apt-get install package--reinstall re-installation package sudo apt-get-f install fix installation "-f = -- fix -missing "sudo apt-get remove package uninstall an installed software package (keep the configuration file) sudo Pt-get check whether there is any corrupted dependency on www.2cto.com sudo apt-get remove package--purge to delete the package, including deleting configuration files and other sudo apt-get update sources sudo apt-get upgrade update installed packages sudo apt-get dist-upgrade system kernel sudo apt-get dselect-upgrade usage dselect upgrade sudo apt-get build-dep package install the relevant compilation environment sudo apt-get source package download the source code of this package sudo apt-get autoclean apt will put installed or unloaded software are all backed up on the hard disk, so if you need space, you can run this command to delete the software sudo apt-get clean & sudo apt you have deleted. -Get autoclean clear useless packages sudo apt-cache depends package learn how to use sudo apt-cache rdepends package to view which packages depend on sudo apt-cache search package to search in the package list the package name suco apt-cache show package displays the package information. Apt-cache dumpavail prints a list of available software packages. Which package does the dpkg-S file belong. Dpkg-L package lists all files in the package. Dpkg-force-all-purge packagename some software is difficult to uninstall and it also blocks other software applications, you can use www.2cto.com dpkg-l package-name-pattern to list all software packages that match the pattern. If you do not know the full name of the software package, you can use "* package-name-pattern *" apt-file search filename to find the software package containing a specific file (not necessarily installed ), these file names contain specified strings. Apt-file is an independent software package. You must first install apt-get install and then run apt-file update. If apt-file search filename outputs too much content, you can try to use apt-file search filename | grep-w filename (only show the names of the complete words in the specified string) or similar methods, such: apt-file search filename | grep/bin/(only files in folders such as/bin or/usr/bin are displayed. if you are looking for a specific execution file, this is helpful ). Aptitude-View installed or available software packages in detail. Similar to apt-get, aptitude can be called through the command line, but is limited to some commands-the most common commands are installation and uninstallation. Because aptitude knows more information than apt-get, it is more suitable for installation and uninstallation. Sudo apt-get autoclean -- run this command regularly to clear the. deb files of uninstalled software packages. In this way, you can release a large amount of disk space. If your requirements are urgent, you can use apt-get clean to release more space. This command will delete the. deb file that has installed the software package. In most cases, you will not use these. debs files. Author hanzhou4519
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.