How can I install yum rpm packages without internet connection?

前端 未结 2 779
生来不讨喜
生来不讨喜 2021-01-28 12:58

This question has been asked before but mine is a bit different.

I want to install a bunch of rpm packages using sudo yum. I do not have internet connection on the mach

2条回答
  •  清歌不尽
    2021-01-28 13:08

    if you have the RPM files on your local machine or any machine (not from network but you literally downloaded the .rpm files) then you can run

    yum localinstall 
    

    you can also do

    rpm -ivh 
    

提交回复
热议问题