Linux Package Installation method

Source: Internet
Author: User

Linux Package Installation method

One, three ways to install the package

    • Rpm

    • Yum Tool Pack

    • SOURCE Package

    • RPM Package Introduction

Second, RPM introduction

RPM is an abbreviation for RPM Package Manager(rpm packages Manager), although the file format name is RedHat, but its original design concept is open and now includes openlinux,s.u.s.e, and distribution versions of Linux, such as Turbo Linux , are accepted as industry standards.

2. use of RPM tools

RPM–IVH rpm Package file // installation

RPM–UVH rpm Package file // upgrade

Rpm–e Package Name // Uninstall

RPM–QA// Query installation package

Rpm–q Package Name // query Specifies whether the package is installed

Rpm–qi Package Name // Query Specify package information

RPM–QL Package Name // list package installed files

RPM–QF File Absolute path // View a file is installed with that package

Third, the use of Yum tools

Yum 's main is more convenient to add, delete, update RPM package, automatically solve the dependencies between software packages, convenient system updates and software management. Yum through the Software warehouse (repository) for software download, installation, etc., the software warehouse can be an HTTP or FTP site, can also be a software pool, the resource warehouse can also be multiple , You can configure it in the/etc/yum.conf file. in the Yum Repository, the header informationof the RPM is included,including the function description, dependencies, etc. of the software. By analyzing this information,Yum calculates dependencies and carries out related upgrades, installs, deletions, and so on.

Yum command Format

Yum [options] Command ( command )

  1. Check to detect rpmdb problems

  2. Check-update checking for updatable packages

  3. clean clears the cached data

  4. Deplist Show dependencies for packages

  5. Distribution-synchronization Synchronizing installed packages to the latest available version

  6. Downgrade downgrade a package

  7. Erase Deleting a package

  8. GroupInfo Show package group details

  9. Groupinstall Installing the specified package group

  10. Grouplist Show available package group information

  11. Groupremove Removing installed package groups from the system

  12. Help removal assistance Information

  13. history shows or uses interactive histories

  14. Info shows the details of a package or package group

  15. Install installation package

  16. List displays packages that can be installed or updatable

  17. Makecache Generating a metadata cache

  18. Provides search for a specific package file name

  19. Reinstall Reinstall Package

  20. Repolist displaying the configured repository

  21. RESOLVEDEP refers to the fact that Reliance

  22. Search Package

  23. Shell enters Yum 's shell prompt

  24. Update updates the packages in the system

  25. Upgrade upgrading packages in the system

  26. version shows the versions of the available sources for the machine

Four, yum build local warehouse main steps

1. mount the image to the /mnt directory

2. Cp–r/etc/yum.repos.d/etc/yum.repos.d.bak

3. rm–f/etc/yum.repos.d/*

4. Vim/etc/yum.repos.d/dvd.repo// content is as follows

[DVD]

Name=install DVD

Baseurl=file:///mnt

Enable=1

Gpgcheck=0

5. Yum Cean All

6. Yum List


Linux Package Installation method

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.