yum repositories Flashcards

1
Q

Where are yum repository configuration files located?

A

/etc/yum.repos.d

*config file must end in .repo

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

How do you view current yum repositories in use?

A

yum repolist

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

How do you view enabled and disabled yum repositories?

A

yum repolist all

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

How can you add a repo?

A

yum-config-manager –add-repo={https://url}

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

How do you enable/disable a repo?

A

yum-config-manager –disable {repo id}
yum-config-manager –enable {repo id}
*repo id is in brackets [] in yum.repos.d

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

How do you use an install iso as a local repository?

A

Mount it
mount -o loop {iso} {/mnt/point}
yum-config-manager –add-repo={ftp:///mount}

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

How do you configure a repo to use gpg?

A
Download the gpg key from the base repo url
Edit {repo}.repo
Append:
gpgcheck=1
gpgkey=file:///etc/pki/rpg-gpg/{gpgkey}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly