LINUX,RMP and Yum commands

Source: Internet
Author: User

Job One: RPM command
1) Mount the disc file to the/media directory

2) Enter the packages directory under the/media directory


3) View all RPM packages installed on the system


4) Check to see if the system is installing DHCP packages

5) Install the DHCP package

6) View information for DHCP packages


7) View all files included in the DHCP package


8) See which package generated the/bin/ls file


9) Uninstalling the DHCP package

Job Two: Yum command
1) Customizing the Yum repository: Createrepo

[Email protected] ~]# vim/etc/yum.conf

[Email protected] root]# Mkdir/rpm_bak

[email protected] root]# Yum install httpd*

[Email protected] root]# Mkdir/createrepo

[Email protected] root]# cp/rpm/*/createrepo/

[Email protected] root]# Createrepo/createrepo


2) Customizing the repo file

[[email protected] root] # CD/ETC/YUM.REPOS.D

[[email protected] root] # vim Httpd.repo

[Email protected] root]# Createrepo/createrepo


3) Install the HTTPD package using the Yum command

Yum Insta httpd


4) Uninstalling the HTTPD package: yum–y Remove software name

Yum-y Erase Remove


5) Install the component ' KDE desktop ' using yum: Yum–y Groupinstall Component Name

The first thing to do is to change the Yum repository in the changed Createrepo.repo file to CD drive mount


6) Master using Yum to remove components ' KDE Desktop ': Yum–y groupremove Component Name


7) Master purge Yum cache: Yum Clean all


8) Use Yum to find packages: Yum Search package Name


Job Three: Source installation python

1. To prevent errors during installation of Python3 and problems during compilation, install first before installing:

1)

# yum-y Install Sqlite-devel

2) Install the compilation tools and library files

# yum-y Install make zlib zlib-devel gcc-c++ libtool OpenSSL openssldevel

3. New Installation Road and decompression

[Email protected] ~]# mkdir-p/usr/local/python3
[Email protected] ~]# cd/usr/local/python3/
[[email protected] python3]# ls
Python-3.6.1.tgz

4.

LINUX,RMP and Yum commands

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.