Install a package from .rpm and ignoring the repository provided one

I want to install RStudio from the .rpm provided on the official website.

On Fedora repositories there are rstudio and a rstudio-desktop which consequently I want to ignore.

I inserted the following line in /etc/dnf/dnf.conf as suggested here

exclude=R-*, rstudio-*

The problem is that now I cannot install the .rpm I have downloaded from the RStudio website.

In particular it says:

$ sudo dnf install ./rstudio-1.4.1717-x86_64.rpm 
Last metadata expiration check: 2:36:31 ago on Wed 23 Jun 2021 15:22:59 CEST.
No match for argument: rstudio-1.4.1717-x86_64.rpm
Error: Unable to find a match

It looks like dnf is also ignoring local .rpm files.

Should I first install the file from local .rpm, and then put the line in /etc/dnf/dnf.conf?

What if a new RStudio version comes out, and I download a new .rpm file from their website?

Should I remove the line from `dnf.conf’, install the new version from local .rpm file, and put the line back again?

What happens if you install with rpm?

sudo rpm -i ./rstudio-1.4.1717-x86_64.rpm
1 Like

With rpm looks like it got installed!

Thank you very much!

You are very helpful :slight_smile:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.