Scope/Description
- This article will show how to enable 45drives package repositories in Rocky Linux and Ubuntu environments.
Prerequisites
- Ubuntu 20.04
- Rocky Linux 8
- CentOS 7/8
- RHEL 7/8
Steps
Rocky Linux
Automated (Replaces Old Repositories)
- Run the repository configuration script which can be found at repos.45drives.com/setup
[root@rocky-45d ~]# curl -sSL https://repo.45drives.com/setup | sudo bash
Manual
- Pull down repository
[root@rocky-45d ~]# curl -o /etc/yum.repos.d/45drives.repo https://repo.45drives.com/lists/45drives.repo
Update dnf/yum cache
- Clean and update dnf cache (Rocky Linux)
[root@rocky-45d ~]# dnf clean all && dnf makecache
- Clean and update yum cache (CentOS 7)
[root@centos-45d ~]# yum clean all && yum makecache fast
Ubuntu
Automated (Replaces Old Repositories)
- Run the repository configuration script which can be found at repos.45drives.com/setup
root@ubuntu-45d:~# curl -sSL https://repo.45drives.com/setup | sudo bash
Manual
- Install the repository signing key
root@ubuntu-45d:~# wget -qO - https://repo.45drives.com/key/gpg.asc | apt-key add -
- Pull down repository .sources file
root@ubuntu-45d:~# curl -o /etc/apt/sources.list.d/45drives.sources https://repo.45drives.com/lists/45drives.sources
Update apt repository
- Update apt repos
root@ubuntu-45d:~# apt update
Verification
- You are now able to install 45drives packages by pulling them from 45drives repositories.
[root@rocky-45d ~]# dnf install cockpit-file-sharing cockpit-benchmark cockpit-navigator
root@ubuntu-45d:~# apt install cockpit-file-sharing cockpit-benchmark cockpit-navigator
Troubleshooting
- Ensure that you are attempting to curl to the correct local path, and the correct URL.
- Ensure you have external access on the machine you are trying to install the repositories on.
Further Reading
Views: 6542