Yum: Difference between revisions
Jump to navigation
Jump to search
Added Troubleshooting |
|||
| Line 22: | Line 22: | ||
yum info $package | yum info $package | ||
View installed repos: | View installed repos: | ||
yum repolist | |||
= Troubleshooting = | |||
==Errno 4 IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. == | |||
Check /etc/resolv.conf. Make sure settings are correct. | |||
==rpmdb problems == | |||
<p>Can often happen when the system is very low on RAM.</p> | |||
Make a backup: | |||
mkdir /home/temp/rpmdb-bak/ | |||
cp -av /var/lib/rpm/__db* /home/temp/rpmdb-bak/ | |||
Remove the database: | |||
rm -i /var/lib/rpm/__db* | |||
Rebuild the database: | |||
rpm --rebuilddb | |||
Check: | |||
yum repolist | yum repolist | ||
Revision as of 01:31, January 12, 2021
Basic Usage
Documentation: http://yum.baseurl.org/wiki/Guides
Log: /var/log/yum.log
See if a package installed, or which version is available:
yum list $package
Search for a package:
yum search $package
Install a package:
yum install $package
Update a package:
yum update $package
Downgrade a package:
yum downgrade $package
Remove a package:
yum remove $package
Search for a file within a package:
yum provides */$package
View package dependencies:
yum deplist $package
View package details:
yum info $package
View installed repos:
yum repolist
Troubleshooting
Errno 4 IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror.
Check /etc/resolv.conf. Make sure settings are correct.
rpmdb problems
Can often happen when the system is very low on RAM.
Make a backup:
mkdir /home/temp/rpmdb-bak/ cp -av /var/lib/rpm/__db* /home/temp/rpmdb-bak/
Remove the database:
rm -i /var/lib/rpm/__db*
Rebuild the database:
rpm --rebuilddb
Check:
yum repolist