Debian package management skills

Source: Internet
Author: User
Debian package management skills-Linux Release Technology-Debian information. See the following for details. View the installation content of software XXX
Dpkg-L xxx

Search software
Apt-cache search Regular Expression

Find the package of the file
Dpkg-S filename
Apt-file search filename

Queries which packages the software xxx depends on
Apt-cache depends xxx

Query which package dependency of software xxx
Apt-cache rdepends xxx

Add a CD Source
Sudo apt-cdrom add

System Upgrade
Sudo apt-get update
Sudo apt-get upgrade
Sudo apt-get dist-upgrade

Clear the remaining configuration files of all deleted packages
Dpkg-l | grep ^ rc | awk '{print $2}' | tr ["\ n"] [""] sudo xargs dpkg-P-

Automatic Processing of h files is missing during compilation
Sudo auto-apt run./configure

View the temporary directory for storing downloaded packages during software installation
Ls/var/cache/apt/archives

Back up the list of all packages installed in the current system
Dpkg -- set-selections> ~ /Somefile
Sudo dselect

Clear old software caches
Sudo apt-get clean

Delete isolated software that is no longer used by the System
Sudo apt-get autoremove

View the address of the package on the server
Sudo apt-get-qq -- print-uris install ssh | cut-d \ '-f2
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.