Skip to content

Instantly share code, notes, and snippets.

@tori3852
Last active March 4, 2021 17:26
Show Gist options
  • Save tori3852/c8b25eeddf211e4e8c6296910cb72c83 to your computer and use it in GitHub Desktop.
Save tori3852/c8b25eeddf211e4e8c6296910cb72c83 to your computer and use it in GitHub Desktop.
Install RStudio on Fedora
sudo dnf install -y $(curl -s https://rstudio.com/products/rstudio/download/ | grep "fedora" | grep -o "\"[^ \"]*x86_64.rpm\"" | sed "s/\"//g")
@julydinesh
Copy link

Was working previously, when recently executed, it gives an error, as it looks for the package name directly

[user@localhost ~]$ sudo dnf install $(curl -s https://www.rstudio.com/products/rstudio/download/ | grep -o ""[^ \"]*x86_64.rpm"" | sed "s/"//g")
usage: dnf install [-c [config file]] [-q] [-v] [--version]
[--installroot [path]] [--nodocs] [--noplugins]
[--enableplugin [plugin]] [--disableplugin [plugin]]
[--releasever RELEASEVER] [--setopt SETOPTS]
[--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C]
[-R [minutes]] [-d [debug level]] [--debugsolver]
[--showduplicates] [-e ERRORLEVEL] [--obsoletes]
[--rpmverbosity [debug level name]] [-y] [--assumeno]
[--enablerepo [repo]] [--disablerepo [repo] | --repo
[repo]] [--enable | --disable] [-x [package]]
[--disableexcludes [repo]] [--repofrompath [repo,path]]
[--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh]
[-4] [-6] [--destdir DESTDIR] [--downloadonly]
[--comment COMMENT] [--bugfix] [--enhancement]
[--newpackage] [--security] [--advisory ADVISORY]
[--bz BUGZILLA] [--cve CVES]
[--sec-severity {Critical,Important,Moderate,Low}]
[--forcearch ARCH]
PACKAGE [PACKAGE ...]
dnf install: error: the following arguments are required: PACKAGE

@tori3852
Copy link
Author

@julydinesh, download URL changed slightly, should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment