Below is the task in Level 2
The Nautilus production support team and security team had a meeting last month in which they decided to use local yum repositories for maintaing packages needed for their servers. For now they have decided to configure a local yum repo on Nautilus Backup Server. This is one of the pending items from last month, so please configure a local yum repository on Nautilus Backup Server as per details given below.
a. We have some packages already present at location /packages/downloaded_rpms/ on Nautilus Backup Server.
b. Create a yum repo named local_yum and make sure to set Repository ID to local_yum. Configure it to use package’s location /packages/downloaded_rpms/.
c. Install package vim-enhanced from this newly created repo
my questions:
yum repolist
Warning: failed loading ‘/etc/yum.repos.d/local_yum.repo’, skipping.
Warning: failed loading ‘/etc/yum.repos.d/yum_local.repo’, skipping.
No repositories available
nothing provides libgpm.so.2()(64bit) needed by vim-enhanced-2:8.0.1763-19.el8.4.x86_64
nothing provides vim-common = 2:8.0.1763-19.el8.4 needed by vim-enhanced-2:8.0.1763-19.el8.4.x86_64
(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
I am getting these errors while I try to list all the repos and installing the package vim-enhanced
Can anyone help me on this
Please use code blocks as I have below to paste code and terminal output.
Note that the repo name changes each time you attempt the task. In my case it was localyum
[root@stbkp01 ~]# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
repo id repo name
localyum localyum
Install package
yum install -y vim-enhanced
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
localyum 11 MB/s | 59 kB 00:00
Dependencies resolved.
===============================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================
Installing:
vim-enhanced x86_64 2:8.0.1763-19.el8.4 localyum 1.4 M
Installing dependencies:
gpm-libs x86_64 1.20.7-17.el8 localyum 39 k
vim-common x86_64 2:8.0.1763-19.el8.4 localyum 6.3 M
vim-filesystem noarch 2:8.0.1763-19.el8.4 localyum 50 k
Transaction Summary
===============================================================================================================================
Install 4 Packages
Total size: 7.8 M
Installed size: 30 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : vim-filesystem-2:8.0.1763-19.el8.4.noarch 1/4
Installing : vim-common-2:8.0.1763-19.el8.4.x86_64 2/4
Installing : gpm-libs-1.20.7-17.el8.x86_64 3/4
Running scriptlet: gpm-libs-1.20.7-17.el8.x86_64 3/4
Installing : vim-enhanced-2:8.0.1763-19.el8.4.x86_64 4/4
Running scriptlet: vim-enhanced-2:8.0.1763-19.el8.4.x86_64 4/4
Running scriptlet: vim-common-2:8.0.1763-19.el8.4.x86_64 4/4
Verifying : gpm-libs-1.20.7-17.el8.x86_64 1/4
Verifying : vim-common-2:8.0.1763-19.el8.4.x86_64 2/4
Verifying : vim-enhanced-2:8.0.1763-19.el8.4.x86_64 3/4
Verifying : vim-filesystem-2:8.0.1763-19.el8.4.noarch 4/4
Installed products updated.
Installed:
gpm-libs-1.20.7-17.el8.x86_64 vim-common-2:8.0.1763-19.el8.4.x86_64 vim-enhanced-2:8.0.1763-19.el8.4.x86_64
vim-filesystem-2:8.0.1763-19.el8.4.noarch
Complete!