简体   繁体   中英

how to install a package in running vm instance in GCP

while we have connect to compute engine and ssh to one of the engine when we try to run below command

 sudo apt-get packagename 

 error: -bash: apt: command not found

is there any way to install in the running instance

You should have chosen an Ubuntu image, when expecting apt-get to function.
The command is probably sudo dnf install - that's depending on the image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM