System Updates and Repos Flashcards

1
Q

Where is the configuration files/repos located for yum?

A

/etc/yum.repos.d/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you install a package using rpm?

A

rpm -hiv ‘location of rpm’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you uninstall a package with RPM?

A

rpm -e ‘package name’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the command to get package info?

A

rpm -qi ‘package name’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the command to list configuration files for a package?

A

rpm -qc ‘package name’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you find out what package a command belongs to?

A

which: shows location of command
which pwd
output: /usr/bin/pwd
rpm -qf /usr/bin/pwd
output: belongs to core utils

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you create a new repo?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly