Class exercises on Yum rpm

Source: Internet
Author: User

1. Distinguish the role of RPM-QI-QF-QL-QA four different combinations of options?


2. Rpm-qi what information will be displayed if followed by a package name that is not installed?


3. Please find out which RPM package This command was installed in?


4. What are the commands for installing and uninstalling a package using RPM?


5. When installing a package with RPM, how do I ignore dependencies and force the package to be installed?


6. How do I upgrade a package using RPM?


7. Use Yum to search for RPM packages that contain the keyword "tidy", install them, install them, and then use Yum to uninstall them.


8. How can I use Yum to download a RPM package?


9. Please download a PHP source package to the official PHP website and try to compile and install it. (PHP website address http://www.php.net/)


10. Check the data to see the difference between Yum upgrade and Yum update? Under what circumstances are they used?


11. How do I see if a package is installed on the Linux system (CentOS)?


/configure: After the completion of the complete, do not know whether there is no success, with what command can be verified?


13. If this error occurs in./configure, "configure:error:no acceptable C compiler found in $PATH" What should we do?


14. Sometimes, you forget how a compilation parameter is written, what do you do?


15. How do I build a yum repository using CDs?


16.yum Installation The workaround for this error Error:no package Matching glibc.i686


----------------------------------------------------------------------------------------

1. Rpm-qi//query for information on one of the RPM packages already installed

RPM-QF//query which RPM package is installed for a program file

RPM-QL//Querying all installation files for an RPM package

RPM-QA//query all installed RPM packages


2. You are prompted that the package is not installed


3. Rpm-qf ' which vim '


4.RPM-IVH RPM Package file name

RPM-E Package Name


5.RPM-IVH--nodeps


6. RPM-UVH


7. Yum List |grep Tidy

Yum install-y Tidy Tidy-devel

Yum remove-y Tidy Tidy-devel


8. Yum install-y--downloadonly--downloaddir=/usr/local/src

9.

Both Yum upgrade and Yum Update are all capable of updating all software packages of the system, and the difference is that upgrade is quite a large-scale upgrade, with the older packages also upgraded. Update and upgrade the focus is not the same, update is mainly to make the software up-to-date, but upgrade more focused on the software features get a big promotion, different from the frequent release of the latest patches.

Upgrade does not change the software settings and system settings, the system version upgrade, the kernel does not change;

Update changes the software settings and system settings, and the system version kernel is upgraded.

Yum Upgrade: For large-scale version upgrades, updating Linux systems and the entire software version

Yum Update: For installing patch files, updating kernels and packages to the latest


Rpm-qa | grep Package Name


. echo $?


Yum install-y gcc


/configure--help


15.A) Mount Disc

[Email protected] ~]# mount/dev/cdrom/mnt

b) Remove all repo files from the/ETC/YUM.REPOS.D directory

[Email protected] ~]# rm-rf/etc/yum.repos.d/*

c) Create a new file Dvd.repo

[Email protected] ~]# Vim/etc/yum.repos.d/dvd.repo

Add the following content:

[DVD]

Name=install DVD

Baseurl=file:///mnt

Enabled=1

Gpgcheck=0

d) Refresh Repos build Cache

[email protected] ~]# Yum Makecache


16.yum Install glibc glibc.i386–enablerepo=c532*





Class exercises on Yum 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.