Skip to content

Instantly share code, notes, and snippets.

@mttjohnson
Last active November 12, 2019 15:48
Show Gist options
  • Save mttjohnson/d648b2285d5d88cbe5742b373618dcbd to your computer and use it in GitHub Desktop.
Save mttjohnson/d648b2285d5d88cbe5742b373618dcbd to your computer and use it in GitHub Desktop.
Troubleshooting Yum Repos
# https://unix.stackexchange.com/questions/222750/sudo-yum-repolist-show-repo-not-in-etc-yum-repo-d
yum repolist
yum repoinfo ius
# Repos are either defined via .repo files in /etc/yum.repos.d or via plugins, which are usually defined via files in /etc/yum/pluginconf.d
ls -la /etc/yum.repos.d
ls -la /etc/yum/pluginconf.d
# If you run yum repolist --noplugins does your repo in question still show up?
yum repolist --noplugins
# If you want to know the URLs of the packages from your mistery repo, you can use yumdownloader --urls packagename to see the URLs. yumdownloader is contained in the package yum-utils.
yumdownloader --urls packagename
# If a yum plugin is used for delivering the repos you could check for the use of Spacewalk which delivers packages via the RHN Satellite system.
spacewalk-channel -l
rhn-channel -l
# Check info on a package from a specific repo
yum --disablerepo="*" --enablerepo="rackspace-centos7-x86_64-ius" info php72u-cli\*
yum --disablerepo="*" --enablerepo="ius" info php72u-cli\*
# List updates
yum list updates
# List update info for cves related to installed packages
yum updateinfo list cves
# Apply security only updates to packages
yum update-minimal --security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment