11-08-2024 10:17 AM
hi
i have Downloaded Rpms and copy to an nxos device in bootflash.
now i want install the rpm in a Guestshell with Sudo yum install /bootflash/nameofrpm.rpm
guesthell will access a mirror, Problem i have no direct Internet Access
is it possible to install the rpm local?
best regards
Solved! Go to Solution.
11-09-2024 10:00 AM
I’m guessing as I don’t have a device to hand to test. Try sudo rpm -ivh /bootflash/filename etc
11-08-2024 11:58 PM
Should be able to with something like “sudo yum localinstall /bootflash/nameofrpm.rpm” as this is already in your bootflash
11-09-2024 08:56 AM
Hi,
i have tried this, but i think "localinstall" don`t work.
[user01@guestshell bootflash]$ ls tftp-server-5.2-38.el9.aarch64.rpm
tftp-server-5.2-38.el9.aarch64.rpm
[user01@guestshell bootflash]$ pwd
/bootflash
[user01@guestshell bootflash]$ sudo yum localinstall /bootflash/tftp-server-5.2-38.el9.aarch64.rpm
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'appstream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
[user01@guestshell bootflash]$
11-09-2024 10:00 AM
I’m guessing as I don’t have a device to hand to test. Try sudo rpm -ivh /bootflash/filename etc
11-09-2024 12:40 AM
Sure as long that RPM Does not required any dependency you can install from shell.
make sure you have enough resources.
check the guide and syntax :
https://developer.cisco.com/docs/nx-os/master-guest-shell/#installing-rpms-in-guest-shell
11-09-2024 08:57 AM
Hi,
i know that link but there is no example for local install a rpm.
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide