You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bundle RStudio Desktop for Linux as a Flatpak, Snap, or AppImage #3079
As of this writing, we are currently building no fewer than five different versions of RStudio Desktop for Linux:
for RedHat/CentOS based systems;
for Ubuntu based systems;
for OpenSuSE based systems with an old libssl;
for OpenSuSE based systems with a new libssl; and
for Debian 9+ based systems.
Despite this somewhat cumbersome matrix we still don't support many platforms and distributions.
This is a general issue with Linux applications, at least on the desktop; because of differing installation systems, packaging requirements, and system libraries, packages conforming to each system's idiosyncrasies are necessary.
Several attempts have been made to solve the problem by introducing an installation platform which encourages the bundling of dependencies (rather than relying on system versions), making application deployment on Linux more like it is on Mac/Windows. In true Linux fashion, there are many competing efforts:
We should evaluate these technologies in the next release cycle or so and see if any would be a good choice for RStudio Desktop (and in particular whether it'd allow us to simplify things or simply introduce a sixth variation!).
Reacted by Ignacio Martinez, Merlijn Sebrechts, Robson Cruz, Andy Keech, pixelr0, Alhaitham, Alan Pope, Luis Vásquez , Ian Pylvainen, huw and 100 more
Reacted by Bela
Reacted by Bela
Reacted by Henrique Andrade, Daniel Riggins, Alberto Fabbri, Tan Ho, Carsten Gramms and Bela
I would vote for #AppImage, because a properly built one will run on both Ubuntu and Fedora (and most other popular mainstream Linux distributions) out-of-the-box.
Reacted by Kurt Pfeifle, bcm0, Z. Bora Ön, chengmingbo, Quetzal2, Matthew W. Thomas, Biithagoras, Ista Zahn, Dulani Woods, Casper Labuschagne and 6 more
Reacted by Ignacio Martinez, Matthijs Berends, Alfredo Hernández, S, Danilo Alculete, Ricardo Avila, Lucio Queiroz, Hari Rana, Pavel Zolotarevskiy, Pius Martin and 11 more
I vote for snap as this seems to be the winning standard at least for developers. I have vscode, node and intellij via snap as well as a whole developers kubernetis single node cluster installed via snap.
Reacted by Ignacio Martinez, valmynd, huw, pixelr0, Transrian, eurruby, Jeff Hammerbacher, Matthijs Berends, Zeng Guangyu, S and 16 more
Reacted by Alfredo Hernández, Gregory Demin, Ricardo Avila, Biithagoras, Bogdan Vatulya, Ista Zahn, Gustavo Peredo, RyanGreenup, Eldhrimer, ludvigng and 25 more
if the straw poll is still on, I vote flatpak. It is the most "usable" to the largest group and offers the best system of sandboxing. AppImage has its pluses and is the most like a windows self-contained .exe, but there are reasons it hasn't caught on or undergone the intense development of flatpak or snap in the past couple of years.
Reacted by Alfredo Hernández, Chris Elrod, S, Bernhard Treutwein, David Rhoads, ManIVIctorious, Gustavo Peredo, Henrique Andrade, ludvigng, A248 and 12 more
@J-J-Chiarella AppImage is seeing great momentum with more and more upstream applications using the format and is being developed actively in the community (over 3,600 stars on GitHub). Unlike the other two solutions, it is not pushed by one of the large Linux distribution companies, and hence does not have the same level of PR though.
The point, however, is: Flatpak/snap (deep system integration) one the one hand and AppImage (portable one-file apps) on the other hand serve different purposes. So why not have both.
Reacted by Václav Haisman, Karl Ove Hufthammer, Kurt Pfeifle, bcm0, Z. Bora Ön, Matthew W. Thomas, Salim B, Willber Nascimento and secretmango
Snap was designed with application stores and communication interfaces between apps in mind, while Flatpak was developed with graphical applications and runtimes in mind. IMHO, snap is best suited for servers and in general for headless devices, while Flatpak is best suited for desktops.
E.g., Fedora just released Fedora Silverblue, a variant of Fedora Workstation which is an immutable OSTree-based image + Flatpak for desktop apps (+ Fedora Toolbox to enable containerised mutable development environments).
Reacted by rdong8, secretmango, Alberto Fabbri, Cedric R. and Igor Lengvarsky
I thank the RStudio team for considering this issue. I know Linux users are probably a small percentage of your user base & the competing standards makes supporting them hard (the fact that the first three comments gave three different preferences is so classic), so I appreciate your efforts.
Question: what problem(s) are you trying to solve by supporting another packaging format? The first sentence of this thread mentions the desire to support as many distros as possible. Which distros are not currently supported that you want to support? I don't see Arch there, but I believe RStudio is in the AUR. So... Slackware? Puppy Linux?
In my mind, the biggest pain point of the current RStudio packaging approach is not which distros are supported (I mostly live in deb land, so I'm feeling sufficiently supported), but greater user-friendliness. I would love a packaging format that was able to update automatically without having to manually redownload a binary from the RStudio download page every so often. I know that both snap & flatplak have this feature (although for some distros you might have to manually run snap refresh or flatpak update). Does AppImage?
I also think AppImage is less broadly user-friendly in that it doesn't automatically install to the system menu like snap & flatpak do. Downloading, chmod'ing, and running from the terminal means it might be great for power users & certain specific use cases, but be otherwise less friendly. (Different purposes, as probonopd says.)
Again, thanks for your consideration and your great software.
Reacted by Matthijs Berends, Chris Elrod, S, Flavio Barros, Lucio Queiroz, ManIVIctorious, Karthik Thrikkadeeri and Alexander Dyall
what problem(s) are you trying to solve by supporting another packaging format?
Reduction of the number of platforms we have to build and test for. A relatively self-contained image would reduce development complexity and allow us to better focus our testing efforts.
Insulation from system dependencies. External libraries change in incompatible ways often on Linux; a recent example is libgstreamer-0.1, which RStudio depends on, but which Debian removed in Debian 9. When Debian removed it, we had to scramble to make custom Qt 5 builds compatible with Debian 9, and produce a new, separate RStudio release for Debian 9 users. Most of these package formats bundle dependencies to an extent, which helps slow down the treadmill.
Improved installation (and possibly upgrade) experience for end users: just download and run it, like you can on Mac and Windows. If you're on a non-mainstream distribution, or an usually old or new one, or have trouble with dependencies, installation can be a challenge. Most of these alternative packaging formats help provide an escape hatch for this long tail.
Reacted by Casper Labuschagne, Lucio Queiroz, Igor Demetrius Alencar, Lluís Revilla and secretmango
@relbus22 I echo = repeat the words in brackets. Using >> I can append the output of the echo to a file. > would write it to that file and overwrite whats there, >> puts it to the end of the file.
~ is short for the users homedir, also /home/$USER or with the manual name.
I use bash as system shell, as everything works. But fish is way nicer for normal usage, as long as I dont execute complex bash commands in it, that are just different on fish. Mainly it looks nice, has easy configs, autocompletion, better TAB preview and thats it.
So I add the alias to both my configs. The configs are loaded with the shell, as if the commands were executed manually. This means the aliases and way more are applied with the shell.
I use bash as system shell, as everything works. But fish is way nicer for normal usage, as long as I dont execute complex bash commands in it, that are just different on fish. Mainly it looks nice, has easy configs, autocompletion, better TAB preview and thats it.
@firefoxlover thank you for replying. Good to learn some bash.
I have wondered for some time about fish and zsh who use linux, how do they go about installing stuff and do all sorts of shell things usually available in bash?
...daily drive RStudio from a distrobox? How was your experience
@relbus22 not yet daily drive, only from time to time, since I am still learning R & RStudio. As far as I can see, RStudio is a bit demanding and it is running a little bit slow. This might be caused also by my low end notebook (Celeron N3450 and only 4 GB RAM).
Flatpak seems here to stay. Devtools and mainstream apps alike have adopted it: VS code, pycharm, sublime text, podman, slack, chrome, spotify, vlc, zoom, firefox, postman, discord, etc.
Docker Desktop which is just a GUI client. They are not putting Docker into Flatpak, which makes no sense.
It would be best if RStudio could install the modules inside its data directory (~/.var/app/...). I think that is compliant with how Flatpak works, does not require additional packaging and does not rely on static permissions to directories outside the sandbox.
It would be best for RStudio to implement xdg-desktop file pickers, so that it doesnt need any static permissions apart Network.
QGis, another app that also uses modules and that I currently run through Distrobox, has a Flatpak that just needs some fixing.
Distrobox is another distro on top of your Distro. Extra RAM consumption and pretty inefficient. Also it has no GUI permission system and still relies on individual Distro packaging.
Reacted by Alberto Fabbri, Ryan Brue and jbpichancourt
I hope this is still being considered. I'm unwilling to install the Fedora package for RStudio because it wants to downgrade my version of g++ so I'm forced to use VS Code for now. With a Flatpak or Snap, the Rstudio team would only need to maintain a single version for all Linux distributions, and we wouldn't have to worry about it breaking our other system applications.
Reacted by jbpichancourt, Bernhard Treutwein, Alberto Fabbri, Humam, Peppermint Bun, Nils Büchner, Rafael Castro and Carsten Gramms
Reacted by JB Ingram, Tau Gärtli, Demi Marie Obenour, Premdeep Maiti, Giovanni Alberto Crestani, Anders Alexandersson, jesusfl15, swindlesmccoop and AlzhaKya
Activity
btreut commentedon Jul 28, 2018
what about a kind of voting/poll for getting some impression about which version would currently be most attractive?
Alexander Wilms aready provided a manifest for creating a flatpak of RStudio.
I would vote for flatpak. Who else?
probonopd commentedon Aug 2, 2018
I would vote for #AppImage, because a properly built one will run on both Ubuntu and Fedora (and most other popular mainstream Linux distributions) out-of-the-box.
KIC commentedon Aug 3, 2018
I vote for snap as this seems to be the winning standard at least for developers. I have vscode, node and intellij via snap as well as a whole developers kubernetis single node cluster installed via snap.
branchus commentedon Aug 21, 2018
I would vote the AppImage
Thanks
btreut commentedon Sep 5, 2018
today I found: another instruction for creating/installing rstudio flatpak. Does anybody have experiences with it?
J-J-Chiarella commentedon Sep 16, 2018
if the straw poll is still on, I vote flatpak. It is the most "usable" to the largest group and offers the best system of sandboxing. AppImage has its pluses and is the most like a windows self-contained .exe, but there are reasons it hasn't caught on or undergone the intense development of flatpak or snap in the past couple of years.
probonopd commentedon Sep 18, 2018
@J-J-Chiarella AppImage is seeing great momentum with more and more upstream applications using the format and is being developed actively in the community (over 3,600 stars on GitHub). Unlike the other two solutions, it is not pushed by one of the large Linux distribution companies, and hence does not have the same level of PR though.
The point, however, is: Flatpak/snap (deep system integration) one the one hand and AppImage (portable one-file apps) on the other hand serve different purposes. So why not have both.
Enchufa2 commentedon Oct 31, 2018
Snap was designed with application stores and communication interfaces between apps in mind, while Flatpak was developed with graphical applications and runtimes in mind. IMHO, snap is best suited for servers and in general for headless devices, while Flatpak is best suited for desktops.
E.g., Fedora just released Fedora Silverblue, a variant of Fedora Workstation which is an immutable OSTree-based image + Flatpak for desktop apps (+ Fedora Toolbox to enable containerised mutable development environments).
JBuursma commentedon Nov 26, 2018
I thank the RStudio team for considering this issue. I know Linux users are probably a small percentage of your user base & the competing standards makes supporting them hard (the fact that the first three comments gave three different preferences is so classic), so I appreciate your efforts.
Question: what problem(s) are you trying to solve by supporting another packaging format? The first sentence of this thread mentions the desire to support as many distros as possible. Which distros are not currently supported that you want to support? I don't see Arch there, but I believe RStudio is in the AUR. So... Slackware? Puppy Linux?
In my mind, the biggest pain point of the current RStudio packaging approach is not which distros are supported (I mostly live in deb land, so I'm feeling sufficiently supported), but greater user-friendliness. I would love a packaging format that was able to update automatically without having to manually redownload a binary from the RStudio download page every so often. I know that both snap & flatplak have this feature (although for some distros you might have to manually run snap refresh or flatpak update). Does AppImage?
I also think AppImage is less broadly user-friendly in that it doesn't automatically install to the system menu like snap & flatpak do. Downloading, chmod'ing, and running from the terminal means it might be great for power users & certain specific use cases, but be otherwise less friendly. (Different purposes, as probonopd says.)
Again, thanks for your consideration and your great software.
jmcphers commentedon Nov 26, 2018
libgstreamer-0.1, which RStudio depends on, but which Debian removed in Debian 9. When Debian removed it, we had to scramble to make custom Qt 5 builds compatible with Debian 9, and produce a new, separate RStudio release for Debian 9 users. Most of these package formats bundle dependencies to an extent, which helps slow down the treadmill.wilx commentedon Nov 26, 2018
Gstreamer 0.1 has been dead for years now. Why are you depending on technology that has become obsolete in 2012?
176 remaining items
relbus22 commentedon May 18, 2023
@firefoxlover
May I ask, what are these two lines for?
btreut commentedon May 19, 2023
to call rstudio easily on the command line (bash/fish)
secretmango commentedon May 19, 2023
@relbus22 I echo = repeat the words in brackets. Using
>>I can append the output of the echo to a file.>would write it to that file and overwrite whats there,>>puts it to the end of the file.~is short for the users homedir, also/home/$USERor with the manual name.I use bash as system shell, as everything works. But fish is way nicer for normal usage, as long as I dont execute complex bash commands in it, that are just different on fish. Mainly it looks nice, has easy configs, autocompletion, better TAB preview and thats it.
So I add the alias to both my configs. The configs are loaded with the shell, as if the commands were executed manually. This means the aliases and way more are applied with the shell.
relbus22 commentedon May 20, 2023
@firefoxlover thank you for replying. Good to learn some bash.
I have wondered for some time about fish and zsh who use linux, how do they go about installing stuff and do all sorts of shell things usually available in bash?
relbus22 commentedon May 20, 2023
Hi y'all,
I made three short videos to show how to install RStudio on a distrobox in a GUI way using a software celled BoxBuddy:
1st video
2nd video
3rd video
Both DistroBox and Box Buddy are available in many distros, to download:
https://podman.io/docs/installation
https://github.com/89luca89/distrobox#installation
(QT creator for linux is needed for BoxBuddy, I can't remember but I think so)
https://github.com/Dvlv/BoxBuddy
@firefoxlover @btreut Did you manage to daily drive RStudio from a distrobox? How was your experience
btreut commentedon May 23, 2023
@relbus22 not yet daily drive, only from time to time, since I am still learning R & RStudio. As far as I can see, RStudio is a bit demanding and it is running a little bit slow. This might be caused also by my low end notebook (Celeron N3450 and only 4 GB RAM).
aiqc commentedon Jan 13, 2024
Flatpak seems here to stay. Devtools and mainstream apps alike have adopted it: VS code, pycharm, sublime text, podman, slack, chrome, spotify, vlc, zoom, firefox, postman, discord, etc.
Docker just put flatpak on their Q1 roadmap:
docker/desktop-feedback#461
secretmango commentedon Jan 14, 2024
Docker Desktop which is just a GUI client. They are not putting Docker into Flatpak, which makes no sense.
It would be best if RStudio could install the modules inside its data directory (
~/.var/app/...). I think that is compliant with how Flatpak works, does not require additional packaging and does not rely on static permissions to directories outside the sandbox.It would be best for RStudio to implement xdg-desktop file pickers, so that it doesnt need any static permissions apart Network.
QGis, another app that also uses modules and that I currently run through Distrobox, has a Flatpak that just needs some fixing.
Distrobox is another distro on top of your Distro. Extra RAM consumption and pretty inefficient. Also it has no GUI permission system and still relies on individual Distro packaging.
rdong8 commentedon May 29, 2024
I hope this is still being considered. I'm unwilling to install the Fedora package for RStudio because it wants to downgrade my version of g++ so I'm forced to use VS Code for now. With a Flatpak or Snap, the Rstudio team would only need to maintain a single version for all Linux distributions, and we wouldn't have to worry about it breaking our other system applications.
markushhh commentedon Jun 25, 2024
@rdong8 you can install it within a distrobox/toolbox like I do. There are some minor inconveniences.
DemiMarie commentedon Oct 29, 2024
I recommend shipping a Snap for Ubuntu and a Flatpak for every other distribution.
btreut commentedon Oct 30, 2024
looks like this
is progress towards a flatpak
nicole-jf commentedon May 21, 2025
unfortunately seems like it stalled now
calyle commentedon Oct 20, 2025
So which man can help us?
sachinchaudhary1808 commentedon Dec 9, 2025
i vote for flatpak