Linux Basic-RPM Package management

Source: Internet
Author: User

Task: Mount the disc file to the/media directory, go to the packages directory under the/media directory, view all RPM packages installed on the system, see if the system is installing the DHCP package, install the DHCP package, view the DHCP package information, View all files included in the DHCP package, see which package the/bin/ls file was generated from, uninstall the DHCP package

Time short task Heavy, no problem old iron 666 straight into the subject:

1) Use Mount Mount disc file/dev/sr0 to/media directory

OMG above the hint seems to tell me that you failed to mount, okay, so I'll unload all of you.

Use Umount to unload devices mounted on the/media and/run/media/root/centos 7 x86_64/

Re-use Mount Mount disc file/dev/sr0 to/media directory

2) Enter the packages directory under the/media directory

3) Use rpm-qa to view all RPM packages installed by the system

4) Use the rpm-q package to see if the system is installing DHCP packages

A package that can be viewed to DHCP is not installed

5) Install the DHCP package using the RPM-IVH package

This completes the installation of the magical DHCP

6) Use the Rmp-qi package To view information about the DHCP software package

7) Use the RMP-QL package to view all files included in the DHCP package

8) Use the rpm-qf file to see which package generated the/bin/ls file

9) Uninstalling the DHCP package using the RPM-EVH package

Mission accomplished, no problem. Old iron, in fact the command option is universal V is the display of information, H is to display the progress bar

Linux Basic-RPM 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.