yum repositories Flashcards
1
Q
Where are yum repository configuration files located?
A
/etc/yum.repos.d
*config file must end in .repo
2
Q
How do you view current yum repositories in use?
A
yum repolist
3
Q
How do you view enabled and disabled yum repositories?
A
yum repolist all
4
Q
How can you add a repo?
A
yum-config-manager –add-repo={https://url}
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
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}
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}