System Updates and Repos Flashcards
Where is the configuration files/repos located for yum?
/etc/yum.repos.d/
How can you install a package using rpm?
rpm -hiv ‘location of rpm’
How can you uninstall a package with RPM?
rpm -e ‘package name’
What is the command to get package info?
rpm -qi ‘package name’
What is the command to list configuration files for a package?
rpm -qc ‘package name’
How can you find out what package a command belongs to?
which: shows location of command
which pwd
output: /usr/bin/pwd
rpm -qf /usr/bin/pwd
output: belongs to core utils
How can you create a new repo?
become root
cd /etc/yum.repos.d
vim file.repo
[BaseOS Repo]
name=Red Hat Enterprise Linux
gpgcheck=0
enabled=1
baseurl=repo url or file:///localrepo/
yum clean all
yum repolist all