Linux Common Command _ Package management __linux

Source: Internet
Author: User
Tags file copy
Binary Package Management Update source Server list
sudo vi/etc/source.list
Debian series: APT Package management Update Source
sudo apt-get update source
sudo apt-get install package installation package
sudo apt-get remove package Delete package
sudo apt-cache search Package Search Package
sudo apt-cache show package get information about the package, such as description, size, version,
sudo apt-get install package,--reinstall reinstall package 
  
   sudo apt-get-f Install repair install
sudo apt-get Remove package--purge Delete package, including configuration file
sudo apt-get BUILD-DEP installation phase Off of the compilation environment
sudo apt-get upgrade update installed package
sudo apt-get dist-upgrade upgrade system
sudo Apt-cache depends package Learn to use this package to rely on those packets
sudo apt-cache rdepends package to see which packages are dependent on
sudo apt-get source package Download the package's source
sudo apt-get Clean && sudo apt-get autoclean cleanup useless packets
sudo apt-get check check for corrupted dependencies
  
Deb Package Installation
To install the Deb Package command: sudo dpkg-i xxx.deb
Delete Package command: sudo dpkg-r xxx.deb
Delete command along with configuration file: sudo dpkg-r--purge xxx.deb
View Software Package information command: sudo dpkg-info xxx.deb
view file copy details command: sudo dpkg-l xxx.deb
View installed package information on the system command: sudo dpkg-l
reconfigure Package command: sudo Dpkg-reconfigure xxx
1.RPM Package Management

Package Name

sudo   -1.7.2p1   -5.el5  . i386.rpm
Software name  version number      distribution   hardware platform

Installation:- I

RPM-IVH sudo-1.7.2p1-5.el5.i386.rpm

Additional installation options:
–excludedocs does not install document files in the package
–prefix Path installs the package to the path specified by path
–test only tests the installation and does not actually install
–replacepkgs Overwrite Install the package
–replacefiles Ignore file conflicts at installation
–nodeps ignores dependencies at installation
query:-Q

Rpm-q sudo
rpm-qa | grep samba

Options:
-A query for all installed packages.
-F Query file-owned packages
-P Query Package
-I display package information
-L displays a list of files in the package
-D displays a list of files that are labeled as documents
-C Displays a list of files that are labeled as profiles

Upgrade:-U

RPM-UVH sudo-1.8.0p1-5.el5.i386.rpm

Checksum

RPM-V Software Name

Uninstall: E

Rpm-e sudo

Note: If the other packages have dependencies, the uninstall will generate a message, you can use –nodeps Force uninstall. 2.YUM Package Management

benefits of applying yum :
Automatically resolve package dependencies and facilitate package upgrades

Install yum Install
detect upgrades Yum Check-update
Upgrade Yum Update
package Query Yum list
Package information Yum Info
Uninstall Yum Remove
help Yum-help, man yum source Code pack Management

Application Examples (PROFTPD):

TAR-XZVF proftpd-1.3.3d.tar.gz (Decompression unpacking)
CD Proftpd-1.3.3d
./configure--prefix=/usr/local/proftpd (configuration)
 make (compile source code, build library and executable program) make
 Install (install)
Script Installation

Application Examples Webmin

TAR-XZVF webmin-1.530.tar.gz
cd webmin-1.530
vi README
./setup.sh

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.