Last time, I created a repository for my own. This time, I’ll write ‘How to use the repository’.
Log in a CentOS7 I want to use the repository on, for example the VPS, the VM for development environment, and so on.
sudo yum install yum-plugin-priorities
yum repolist
sudo vi /etc/yum.repos.d/myrepo.repo
priority=2
‘ to the last line of [base], [updates] and [extras] in /etc/yum.repos.d/CentOS-Base.repo.wget http://www17130ue.sakura.ne.jp/~myrepo/x86_64/RPM-GPG-KEY-o6asan
sudo mv RPM-GPG-KEY-o6asan /etc/pki/rpm-gpg/
Now, I’m ready to use my repository. When I use my repository at the first time, CentOS7 asks about importing RPM-GPG-KEY-o6asan and imports it if I give ‘yes’.
Note) How to delete GPG public key from a client PC.
The client PC doesn’t have the private key. So ‘gpg --delete-key <email@address>’ gives ‘Unknown system error’. The next command works.
$ sudo rpm -e [package]
For that, you need an exact package name. You can get it by the following.
$ rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}n'
For example, you have the following about CentOS-7 Key.
gpg-pubkey-f4a80eb5-53a7ff4b –> gpg(CentOS-7 Key (CentOS 7 Official Signing Key) )
So you can delete it by the next command.
$ sudo rpm -e gpg-pubkey-f4a80eb5-53a7ff4b
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.