Linux System software package management

Source: Internet
Author: User


Excerpt from: http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=7677&extra=page%3D1%26filter%3Dtypeid% 26typeid%3d36

1. RPM Tool
RPM Redhat Package Manager, the design concept is open, not only on the Redhat platform, but also on SuSE can be used.
RPM Package name composition consists of-and. Divided into parts, such as ABRT-CLI-2.0.8-15.EL6.CENTOS.I686.RPM,ABRT-CLI is the package name, 2.0.8-15 is the version number, el6 refers to Redhat Enterprise Edition 6,
CentOS refers to this is used on CentOS, i686 refers to the platform type. Some RPM packages do not write specific platforms but Noarch, which means that the RPM package does not have a hardware platform limit.

Install a package: rpm-ivh/mnt/packages/libjpeg-turbo-devel-1.2.1-1.el6.i686.rpm
-I indicates installation,-V visualization, and-H displays installation progress
--force: Mandatory installation, even if overwriting files belonging to other packages is installed
--nodeps: Install this package when the RPM package to be installed depends on other packages, even if no other packages are installed
Upgrade: RPM-UVH filename.rpm
-U is the meaning of upgrade

RPM Uninstallation:
RPM-E filename//The filename here is queried via the RPM query function.
Rpm-qa |grep Libjpeg-turbo-devel
Rpm-e Libjpeg-turbo-devel

Query whether a package is installed
RPM-Q package name (without platform information and suffix name)

Query the current system for all installed RPM packages
Rpm-qa

Find information about RPM packages:
RPM-QI Package Name

List the files that are installed by RPM:
RPM-QL Package Name

Which rpm package a file belongs to:
RPM-QF filename//This can be used together with anti-quotes, such as RPM-QF ' which LS '

2. Yum Tools
Yum list lists all available RPM package resources
Search for a package: Yum search ' keywords ' or yum list |grep ' keywords '
Yum Install package: Yum install-y filename (package name)
Yum Uninstall package: Yum remove-y filename (package name)
Yum Upgrade pack: Yum update-y filename (package name)
Yum Find package: Yum provides "*/vim"//Use a wildcard here to find out which package the command is installed from

Yum grouplist List of all packages
Yum Groupinstall Mounting Kit
Yum Groupremove Uninstall Kit

Creating a local Yum source
Mount/dev/cdrom/mnt
Cp-r/etc/yum.repos.d/etc/yum.repos.d.bak//Backup First
Rm-f/etc/yum.repos.d/*
Vim/etc/yum.repos.d/dvd.repo
#加入如下内容:
[DVD]
Name=install DVD
Baseurl=file:///mnt
Enabled=1
Gpgcheck=0

Yum List//See if a DVD's logo appears
Installing the Yum extension source
Rpm-ivh www.lishiming.net/data/attachmen ... e-6-8_32.noarch.rpm (other address http://www.aminglinux.com/bbs/thread-6721-1-1.html)
You can also install this: Yum install-y epel-release

Download a RPM package with Yum
Yum install-y Yum-plugin-downloadonly.noarch #首先需要安装一个插件来支持只下载不安装
Yum Install package name-y--downloadonly #这样就已经下载, default in/var/cache/yum/base/packages/
Yum Install package name-y--downloadonly--downloaddir=/usr/local/src #指定一个下载目录, if it is already installed RPM package so unsuccessful,
Need to use Reinstall:yum Reinstall package name-y--downloadonly--downloaddir=/usr/local/src

3. Source Package Installation
Source package is open source self-changing package, mostly with C voice development, can not be used directly, need to compile into binary executable file
Compile the source package must have GCC support, if there is no need to install Yum install-y gcc
Usually compiles three steps:
./configure configuration of various compilation parameters;
Make compiles according to the specified compilation parameters;
Make install to the specified directory

Linux System software package management

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.