Linux installation Package Command/yum and RPM

Source: Internet
Author: User
Tags windows download

1, RPM installation Package command (in the case of a DHCP package)----RPM installation package needs to resolve dependencies, so it is particularly troublesome (2 is required). Both RPM and Yum are binary packages. Similar to the Windows download package, you can install it directly.

Rpm-qa | grep DHCP to see if the system installs the dhcp* package

RPM-IVH DHCP installation package (I--install v)

RPM-E DHCP Offload Package

RPM-QL DHCP Package installation path

Rpm-qi more information about DHCP packages

RPM-QF DHCP to view the files that the DHCP package belongs to

Force override installed at the back plus--force

2.Yum command (take httpd as an example) Yum software source is automatically updated (off)

Yum-y Install HTTPD installation package

Yum-y Erase httpd Uninstall Package

/ETC/YUM.REPOS.D Yum Source Path <yum installation package Origin >

You can customize the. repo file under/etc/yum.repd.d, Vim Xxx.repo can be written

Yum–y Remove software name uninstall software name

Yum–y Groupinstall Component Name Install component name

Yum–y Groupremove Component Name unload component name

Yum clean all clears the Yum cache

Yum Search package name uses Yum to find packages

Yum makecache-y do (yum package) cache

Turn off Yum auto Update software:

How to download a package from the Web for installation: (Take Python3.6 as an example)

1. Download the package from the Python Web www.Python.org---->source Code

2. Install the LRZSZ package before you can drag files onto Linux.

3. Unpack the package with the TAR command: TAR-XVF package

4. After the decompression to initialize the configuration, the package installed in that location, the package started what features and so on.

./configure---prefix=/usr/local/python3.6 The specified installation package is installed in that location (./configure Perform initialization configuration)

5. Yum Grouplist

Yum Groupinstall "development tool"-y//Install development tool (source code into binary code) will automatically GCC glibc related development software tools

6.make Install compilation <> installation

7. If the installation fails due to the absence of the appropriate package, you can continue to install the appropriate package and make Intall

For example:

Linux installation Package Command/yum and RPM

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.