2015-03-30linux System software package management

Source: Internet
Author: User

Content Summary:
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.
-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
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
Install 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) can also be installed like this: Yum install-y epel-release

Yum downloads the installation package to the specified directory

Need to install a separate Yum plugin (named yum-plugin-downloadonly) to use the--downloadonly command option

Yum reinstall-y--downloadonly--downloaddir=/usr/local/iperf iperf
Http://www.apelearn.com/bbs/thread-8600-1-1.html
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 configure various compilation parameters; Make compiles according to the specified compilation parameters, and makes install to the specified directory
Instance:
Download source package cd/usr/local/src/#约定目录;
wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.27.tar.bz2
Extract
Tar jxvf httpd-2.2.27.tar.bz2//view readme or install documentation
Specifies the compilation parameters./configure--help
echo $? Verify success
Make
Make install

Using the Yum source of NetEase

Backup/etc/yum.repos.d/centos-base.repo First
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.backup
Download the corresponding version of the repo file, put in the/etc/yum.repos.d/(please do the appropriate backup before the operation)
Http://mirrors.163.com/.help/CentOS5-Base-163.repo
Http://mirrors.163.com/.help/CentOS6-Base-163.repo

Run the following command to generate the cache
Yum clean all clears the Yum cache
Yum Makecache the package information on the server is now cached locally to increase the speed of the search installation software

Extended:
1. Allow Yum to keep installed packages http://www.360doc.com/content/11/0218/15/4171006_94080041.shtml
2. Use NetEase yum source http://www.aminglinux.com/bbs/thread-7475-1-1.html
3. Build LAN Yum source http://www.aminglinux.com/bbs/thread-7627-1-1.html
4. Yum-Source Priority http://www.aminglinux.com/bbs/thread-7168-1-1.html

2015-03-30linux System software package management

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.