$ cd ~ $ gpg --gen-key $ gpg --export -a 'Name Surname (repo)' > RPM-GPG-KEY
%_signature gpg %_gpg_path ~/.gnupg %_gpg_name Name Surname (repo)
$ mkdir -p repo repo/i386 repo/i686 repo/x86_64 $ mv RPM-GPG-KEY repo/RPM-GPG-KEY
$ chmod a+x $ ./repo_rhel.sh
[nobody] name=nobody repo baseurl=http://<IP->/repo/$basearch gpgkey=http://<IP->/repo/RPM-GPG-KEY enabled=1 gpgcheck=1 priority=1
# yum clean all # yum list | grep nobody
$ cd ~ $ gpg --gen-key $ gpg --export -a 'Name Surname (repo)' > DEB-GPG-KEY
%_signature gpg %_gpg_path ~/.gnupg %_gpg_name Name Surname (repo)
$ mkdir -p repo/dists/nobody/soft/binary-i386 $ mkdir -p repo/dists/nobody/soft/binary-x86_64 $ mkdir -p repo/pool/soft/binary-i386/t/teamviewer $ mkdir -p repo/pool/soft/binary-x86_64/t/teamviewer $ mv DEB-GPG-KEY repo/DEB-GPG-KEY
$ chmod a+x $ ./repo_debian.sh
deb http://<IP->/repo nobody soft
$ wget http://<IP->/repo/DEB-GPG-KEY $ sudo apt-key add DEB-GPG-KEY $ sudo apt-get clean $ sudo apt-get update
Source: https://habr.com/ru/post/168635/
All Articles