How do I install a .rpm file?
I downloaded an RPM and it is in my Downloads folder. How do I install this?
I downloaded an RPM and it is in my Downloads folder. How do I install this?
I think the easiest way is to open a terminal, navigate to the downloads folder
$ cd ~/Downloads
and then
$ sudo dnf install NAME_OF_RPM.rpm
differences about rpm -Uvh foo.rpm
and sudo dnf foo.rpm
. The main , dnf resolves dependency problems ,more here
$ cd $HOME/Downloads
To install for the first time use:
$ su -c "rpm -ihv your_file.rpm"
Or you can update an older version using:
$ su -c "rpm -Uhv your_file.rpm"
Typically there is no big difference between su
and sudo
, you can find more details here . However, su
forces you to share your root password to other users whereas sudo
makes it possible to execute system commands without root password. By adding the -c
to the su
command there will be no big difference between sudo
and su -c
as I said before, and as a fedora user I prefer su -c
Asked: 2017-01-13 15:51:19 -0600
Seen: 57,890 times
Last updated: Jan 17 '17