Ask Your Question
1

How do I install a .rpm file?

asked 2017-01-13 15:51:19 -0600

mattdm gravatar image

I downloaded an RPM and it is in my Downloads folder. How do I install this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
6

answered 2017-01-13 16:13:01 -0600

Entropy813 gravatar image

updated 2017-01-17 09:06:42 -0600

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

edit flag offensive delete link more

Comments

differences about rpm -Uvh foo.rpm and sudo dnf foo.rpm . The main , dnf resolves dependency problems ,more here

christianbueno gravatar imagechristianbueno ( 2017-07-17 22:04:27 -0600 )edit
1

answered 2017-01-13 20:12:59 -0600

Malek B. gravatar image
$ 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"
edit flag offensive delete link more

Comments

Can you elaborate on why su -c instead of sudo?

mattdm gravatar imagemattdm ( 2017-01-14 08:04:23 -0600 )edit

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

Malek B. gravatar imageMalek B. ( 2017-01-14 09:14:53 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-13 15:51:19 -0600

Seen: 57,890 times

Last updated: Jan 17 '17