1. Distinguish the role of RPM-QI-QF-QL-QA four different combinations of options?Rpm-qi: Get details of an installed RPM package
RPM-QF: List which rpm package a file belongs to
rpm-ql: List A RPM package installation file
RPM-QA: Query all installed RPM packages of the current system
2. Rpm-qi what information will be displayed if followed by a package name that is not installed?
Show " package was not installed"
3. Please find out which RPM package This command was installed in?
rpm-qf ' which vim '
vim-enhanced-7.2.411-1.8.el6.i686
4. What are the commands for installing and uninstalling a package using RPM?
Installation: RPM-IVH filename
Uninstall: RPM-E Package name
5. When installing a package with RPM, how do I ignore dependencies and force the package to be installed?
RPM-IVH--force
6. How do I upgrade a package using RPM?
RPM-UVH filename
7. Use Yum to search for RPM packages that contain the keyword "tidy", install them, install them, and then use Yum to uninstall them.
Yum List |grep tidy
8. How can I use Yum to download a RPM package?
Yum install-y package name--downloadonly--downloaddir=/user/home/download
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?
yum-y Update
Upgrade all packages, change software settings and system settings, and upgrade the system version kernel
yum-y Upgrade
upgrade all packages, do not change the software settings and system settings, System version upgrade, the kernel does not change
11. How do I see if a package is installed on the Linux system (CentOS)?
RPM-Q Package Name
/configure: After the completion of the complete, do not know whether there is no success, with what command can be verified?
echo $?, if return 0, indicates success
13. If this error occurs in./configure, "configure:error:no acceptable C compiler found in $PATH" What should we do?
no gcc compiler installed, yum install-y gcc
14. Sometimes, you forget how a compilation parameter is written, what do you do?
View the install Help documentation in the installation package
15. How do I build a yum repository using CDs?
1. Mount the disc
mount/dev/cdrom/mnt
2, delete the/ETC/YUM.REPOS.D directory all the repo files, insurance, need to back up first
3. Create a new file Dvd.repo
Vim/etc/yum.repos.d/dvd.repo//Add the following content
[DVD]
Name=install DVD
baseurl=file://mnt
enabled=1
gpgcheck=0
4. Refresh Repos Build Cache
Yum Makecache
How to install software under Linux