What is AppImage in Linux?
On a Linux distribution, you always install new software with the help of a package manager when possible. This keeps everything neat and all files are tracked by the manager, which can then be easily deleted if desired. This also helps to avoid potential problems when you upgrade the distribution later.
But since the distribution may not have the software you need or some software may be too old, sometimes you have to resort to alternative solutions. However, among all these alternatives, choose to download only third-party .deb or .rpm files if there are no other options available.
Learn about AppImage in Linux
- What is AppImage?
- How does AppImage work?
- Compare AppImage, Snap and Flatpak
- How to run AppImage
What is AppImage?
On Windows, you can download a ZIP file, extract content into a folder and run the internal application without having to install it. This is called a portable application because you can copy it to a USB memory stick and then run it on any Windows-based computer.
Although built in a different way technically, an AppImage works similarly to a portable application, from a user perspective. You can download a file and run the program on Linux operating system without installing anything. Moreover, you can also copy the file to USB and the program will run on Debian, Ubuntu, Arch Linux, openSUSE, Fedora or any other Linux distribution.
How does AppImage work?
A program often needs to use several libraries to perform tasks. A distribution selects specific versions of the library and makes sure all the programs it includes will work with these libraries. The random version of a random program from the Internet may need libraries that are not in your distribution.
Instead of relying on what your operating system provides, AppImage encapsulates everything the application needs in a file. When you run this file, AppImage executes its 'magic' and creates a temporary file system, where AppImage has access to everything it needs. In the picture below, you can see the contents of the LibreOffice AppImage temporary file system.
You may have noticed this is how AppImage includes the necessary libraries, files with names starting with 'lib' and ending with the '.so' extension .
Compare AppImage, Snap and Flatpak
You can feel the Flatpak / Snap applications similar to the AppImage applications, but in fact, they are quite different. For beginners, Flatpak and Snap need an environment and a daemon to be installed first. Daemon monitors and manages how applications run, update, install, etc. Of course, each solution has its own advantages and disadvantages and none is the best solution. It all depends on what you need from your software.
Here are some advantages of Snap / Flatpak:
- They are sandboxed, isolated from the rest of the system. This provides protection against most types of malware.
- You can download Snap from a central application store. You can also search for software, download and install directly from the command line.
- Upgrade packages is easy. Daemon looks at the store to find out which version is newer and suitable for you.
Advantages of AppImage:
- You do not need to prepare the system before running AppImage. It seems that this is not a big problem, you only install the daemon snap once, then it will work. But think about the following situation. You are at school and need to quickly run a program. You cannot install the daemon snap (without root permissions), so you cannot run your favorite Snap. However, you can download an AppImage and run it, even without admin rights.
- Really portable: You can copy AppImage to a USB memory stick, take it with you and run it on any Linux operating system.
- Some AppImage programs can update themselves.
- Everything is contained in a file. You only need to download the file to use and delete it when you no longer need it. Nothing is simpler than that!
How to run AppImage
After you download an AppImage file, it will not be executed immediately. In some cases, AppImage may display an executable icon. In other cases, an error may occur when you double-click the file. For example, the operating system may confuse it with a video file and try to open it with the video player.
However, after the download is complete, you need to right-click on the file, go to Properties, then select Permissions and activate the executable bit on it. The way you do this depends on your desktop environment.
There is an option to allow this file to run as a program or to allow execution ( Execute ) for anyone ( Anyone ).
You can find the list of AppImage programs if you want to test here. However, there is no official central app store, and in most cases, you'll find an AppImage listed as a download option on the download page of the program.
If you wonder if you should use AppImage, Snap or Flatpak, the answer is very simple. If you rarely use applications other than what your package manager provides, use AppImage when possible. However, if you often need third-party software and only use this software on your local computer, use Snap or Flatpak.
You should read it
- 14 interesting Linux commands in Terminal
- How to Install and Use Fonts in Linux
- 8 methods to exit Vim in Linux
- Compare the most popular Linux distributions today
- 10 indispensable Office applications of Linux
- 7 best Linux distributions based on Red Hat
- How to use ss command on Linux
- Basic Linux commands everyone needs to know
May be interested
- 10 reasons to switch to Linux right in 2012some people 'denigrate' the diversity of linux to cause fragmentation problems, but in fact this is one of the best strengths of linux. users have numerous linux distributions (distros) to choose from, whether it's mint or ubuntu, which is top-notch, or fedora with a variety of features for businesses and especially security.
- What is Puppy Linux? Everything you need to know about Puppy Linuxa linux distro that can run on virtually any computer with minimal configuration and computing resources is puppy linux.
- The 5 most awaited things in Linux in 2019linux has improved a lot in the past few years. some people who are not knowledgeable about technology have moved from windows to linux and responded very positively to this operating system.
- How does the Linux Kernel work?the linux kernel is like a bridge that allows computing communication between applications and hardware, as well as managing the system's resources.
- How to Learn Linuxlearning linux is not a one day task but it isn't herculean either. linux can be a good and safe os for both home and enterprise level users. keep in mind before saying 'hey, i'm going to start working on linux from tomorrow' that there is...
- What do you know about Linux distros?linux has existed for nearly 30 years, this is a historic journey. if you are interested in the history of some of the major linux distributions, read the following article.
- 8 small utilities for a better Linux experiencelinux is one of the most flexible operating systems you can use today. from the interface to the internal functions, you can customize almost everything on your linux pc.
- 7 ways to run Linux software on Windowslinux users want to run windows software on linux, whereas windows users want to use linux software. even if you are looking for a better development environment, more powerful command-line tools, you can run linux software without removing windows.
- From today, owning Linux LPI certificate will be easier!lpi (linux professional institute), a world leader in international linux certification for open source professionals, has officially entered the vietnamese market.
- The 5 best Linux server distributionslinux is one of the factors driving the ever-evolving internet platform today. in fact, more than 70% of all websites are powered by unix, of which linux accounts for 58%.