cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
352
Views
0
Helpful
5
Replies

Guestshell NXOS RPM localinstall yum?

georg-seidl
Level 1
Level 1

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

 

 

 

1 Accepted Solution

Accepted Solutions

I’m guessing as I don’t have a device to hand to test. Try sudo rpm -ivh /bootflash/filename etc

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

5 Replies 5

Should be able to with something like “sudo yum localinstall /bootflash/nameofrpm.rpm” as this is already in your bootflash 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

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]$

I’m guessing as I don’t have a device to hand to test. Try sudo rpm -ivh /bootflash/filename etc

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

balaji.bandi
Hall of Fame
Hall of Fame

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

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi,

i know that link but there is no example for local install a rpm.

Thanks