Software package management for Linux

Source: Internet
Author: User

1. Binary package Management (RPM, YUM)

2. Source Code Package Installation

3. Script installation (shell or Java script)

4, Debian system Linux Package management Introduction

First, RPM package management

An example of a RPM package:

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

These include the software name (sudo), the version number (1.7.2PL), the release number (5.EL5), and the hardware platform (i386).

1. Uninstall

Rpm-e sudo rpm-e [software name]

Note: If other packages have dependencies, they will be prompted when uninstalling, and can be forcibly uninstalled using--nodeps

2. Installation

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

To mount a disc:

Mkdir/mnt/cdrom Create a directory to mount

Mount/dev/cdrom/mnt/cdrom/dev/cdrom is the file of the optical drive,/mnt/cdrom is the Mount directory

Inquire:

Rpm-q sudo queries whether this package is installed

Rpm-qa | grep Samba

RPM-QF query file under the package

Rpm-qi Querying installed package information

RPM-QIP query for non-installed package information

RPM-QL to query the installation files for installed packages

RPM-QLP to query installation files for packages that are not installed

RPM-QD Help document for query package

RPM-QC querying the package configuration file

Installation options

--excludedocs

Do not install the document files in the package

--prefix PATH

Install the package to the path specified by path

--test

Test only the installation, not the actual installation

--replacepkgs

To overwrite the installation

3. Upgrade

4. Check

RPM-V [Package name]

5. Extracting files from the installation package

When some system files are mistakenly deleted, the corresponding packages can be found from the ISO image package, and the specific files will be extracted.

Unzip the specified file to the current directory

rpm2cpio/mnt/cdrom/packages/initscripts-9.03.31-2.el6.centos.x86_64.rpm | Cpio-idv./etc/inittab

Second, yum package management

Benefits: 1, automatically resolve the dependencies of the package. 2, convenient package upgrade, 3, to link the Internet

Installing Yum Install

Detection upgrade Yum Check-update

Upgrade Yum Update

Package Query Yum List

Package Information Yum Info

Uninstalling Yum Remove

Help Yum-help, man Yum

Software package management for Linux

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.