Summary of software Installation and uninstallation commands on the "clean sweep" Raspberry Pi

Source: Internet
Author: User

Basic commands

Installing the Software apt-get install softname1 softname2 softname3 ...
Uninstall software apt-get remove softname1 softname2 softname3 ...
Uninstall and clear the configuration Apt-get remove–purge softname1 "pro-Test Raspberry Pi purge not before-"
Update software information Database Apt-get update
Perform a system upgrade Apt-get upgrade
Search Packages Apt-cache Search softname1 softname2 softname3 ...

If you use Apt-get to encounter slow or source-not-present errors, you may need to replace the source, please refer here .

Installing the Deb package Dpkg-i Xxx.deb
Remove Package Dpkg-r Xxx.deb
Delete Dpkg-r–purge together with the configuration file Xxx.deb
View package Information Dpkg-info Xxx.deb
View file copy details Dpkg-l xxx.deb
To view the installed package information on the system dpkg-l
Reconfigure the package dpkg-reconfigure XXX

clears the residual profile for all deleted packages

dpkg-l |grep ^rc|awk ' {print $} ' |sudo Xargs dpkg-p

If you report the following error, prove that there is no residual configuration file in your system, do not need to worry.
Dpkg:–purge needs at least one package Name argument

The dpkg can be unloaded with apt, or vice versa.

Aptitude command

Like Apt-get, Aptitude is the most powerful package management tool in Debian and its derivative systems. Unlike Apt-get, aptitude is better at dealing with dependency issues. For example, when aptitude deletes a package, it also deletes the packages it depends on. This way, the system will not be left with useless packets, the whole system is cleaner. The following is a summary of some of the common aptitude commands, for reference only.

Aptitude update updates the list of available packages
Aptitude Upgrade Upgrade Available packages
Aptitude Dist-upgrade Upgrade the system to a new release
Aptitude Install Pkgname installation package
Aptitude Remove Pkgname Delete Package
Aptitude Purge Pkgname Delete package and its configuration file
Aptitude search String Searching package
Aptitude show Pkgname shows the details of the package
Aptitude Clean Delete the downloaded package file
Aptitude AutoClean Delete Expired package files only

Of course, you can also use aptitude in text interface mode.

List of common apt commands
Apt-cache Search #------(Package finder)
Apt-cache Show #------(package gets information about packages, such as description, size, version, etc.)
sudo apt-get Install #------(Package installer)
sudo apt-get Install #-----(Package-Reinstall reinstall packages)
sudo apt-get-f Install #-----(Force install? # "-F =--fix-missing" When it is a repair installation ...)
sudo apt-get Remove #-----(Package Delete pack)
sudo apt-get Remove--Purge #------(Package delete packages, including delete profiles, etc.)
sudo apt-get autoremove--purge #----(Package delete packages and their dependent packages + profiles etc (only valid for 6.10, highly recommended))
sudo apt-get update #------Updating source
sudo apt-get upgrade #------Update an installed package
sudo apt-get dist-upgrade #---------Upgrade System
sudo apt-get dselect-upgrade #------upgrade with Dselect
Apt-cache Depends #-------(package understands usage dependencies)
Apt-cache Rdepends #------(Package understands a specific dependency? #当是查看该包被哪些包依赖吧 ...)
sudo apt-get BUILD-DEP #------(Package Installation-related compilation environment)
Apt-get Source #------(Package downloads the source of the bundle)
sudo apt-get clean && sudo apt-get AutoClean #--------Cleanup the archive of downloaded files && clean up outdated packages only
sudo apt-get check #-------checks for corrupted dependencies

Summary of software Installation and uninstallation commands on the "clean sweep" Raspberry Pi

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.