Software package management in Linux __linux

Source: Internet
Author: User
one, the popular package management has two kinds:Debian Linux's Deb package and Redhat Linux rpm software packages,

Debian Linux first proposed that the application binaries, configuration documents, Man/info help pages and other files merged into a file, users use the Package Manager to directly operate the package, complete the acquisition, installation,

Uninstall, query, and other operations. second, the package management is divided into 2 kinds: local management and network management 1. Local administration:--apkg command

Dpkg-i <package> full name of the installation command, must be full name
Dpkg-l <package> List The installation path, you can see how to use it, package only need the front name to
Dpkg-r <package> Uninstall, package only need the front name to
Dpkg-p <package> uninstall software and configuration files
Dpkg-s <package> Displays the state of the software installation to see if it is installed 2. Online Installation: apt-

Due to the complex dependencies of the software packages in the operating system, APT (developed by Debian Linux) to solve the dependency problems of the software packages and obtain the problems.

Apt is a command-line package management tool in Ubuntu Linux for acquiring, installing, compiling, uninstalling, and querying Deb packages, and for checking the dependencies of packages.     Commonly used apt utility program is Apt-get, Apt-cache, apt-file, Apt-cdrom etc. Ubuntu uses a centralized software warehouse mechanism to store a wide variety of packages in a software warehouse for effective organization and management. Then, the software warehouse is in a large number of mirrored servers, and remains basically consistent. In this way, all Ubuntu users can get the latest version of the installation package at any time. Therefore, for users, these mirrors are their source of software.

3 paths you need to know:

/etc/apt/sources.list This is the mirror site of the installation package/var/lib/apt/lists the local package index (so you can quickly locate which Web site to use)/var/cache/apt/archives/Install package default containing the directory aptCommandAs follows: sudo apt-get update updates the local index, that is, update the contents of/var/lib/apt/lists inside
sudo apt-get upgrade All packages are updated ... Use caution

sudo apt-get install xxxx (not full name, package name can) install
sudo apt-get--reinstall install xxxx Reinstall, you can update the version without uninstalling

sudo apt-get remove--purge xxxx Complete uninstall (--purge is thorough)

sudo apt-get clean Delete the Deb package under the default directory

sudo apt-get source xxx Download the source of XXX to the current directory
sudo apt-cache policy xxx View information about the software that has been installed
sudo apt-cache show xxx View details of an existing package in an index file
sudo apt-cache showpkg xxx is similar to show
sudo apt-cache depends xxx lists the files that XXX relies on
sudo apt-cache rdepends xxx lists xxx dependent files


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.