怎样安装subscription-manager

2023年12月14日 | 分类: 【技术】

如果涉及登记 RedHat 订阅凭证:

yum install subscription-manager

How to enable repository using subscription-manager in RHEL

cannot register with any organizations.

I hadn’t specified a company name when completing my developer account setup, as I was signing up as an individual developer I didn’t realise it was a required field (wasn’t asterix’d either) .

Added my employer name and retried and bingo, what a chew one!

https://forum.snapcraft.io/t/trouble-installing-snapd-on-rhel-8/13140/2

$ sudo subscription-manager repos –enable codeready-builder-for-rhel-8-x86_64-rpms
$ sudo subscription-manager repos –enable rhel-8-for-x86_64-appstream-rpms
$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ sudo dnf upgrade
$ sudo yum module install go-toolset
$ sudo yum install git spectool
$ git clone https://github.com/snapcore/snapd/
$ mv snapd ~/rpmbuild
$ cd ~/rpmbuild
$ spectool -g ./packaging/fedora/snapd.spec
$ sudo dnf builddep packaging/fedora/snapd.spec -y
$ rpmbuild -bb ./packaging/fedora/snapd.spec
$ sudo dnf localinstall RPMS/x86_64/snap-confine-2.41-0.el8.x86_64.rpm
$ sudo dnf localinstall RPMS/noarch/snapd-selinux-2.41-0.el8.noarch.rpm
$ sudo dnf localinstall RPMS/x86_64/snapd-2.41-0.el8.x86_64.rpm
$ sudo systemctl enable –now snapd.socket
$ snap install hello-world