Score:4

How to install flameshot version 9 or above on 20.04 LTS?

my flag

I'm using Ubuntu 20.04.03 LTS focal fossa.

Recently, I heard of a screen capturing tool known as Flameshot. I installed it on my system using:

sudo apt update
sudo apt install flameshot

The installation went well and I was able to use flameshot. However, in the GIF on the official GitHub page they have shown many features, such as numbers, margins etc...

But I am unable to use the "numbering feature" and a few more features. It seems like the version available in the focal repositories is pretty old and does not seem to have these features.

Is there any way I can get these features in Ubuntu 20.04 focal?

Score:1
my flag

Apparently, you can compile the newer version of the package from source or install using Flatpak using the other answer

For compiling:

  1. Satisfy Dependencies

    You need the following dependencies:

    Depends: libqt5svg5, libc6 (>= 2.14), libgcc-s1 (>= 3.0), libqt5core5a (>= 5.12.2), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.10.0) | libqt5gui5-gles (>= 5.10.0), libqt5network5 (>= 5.0.2), libqt5widgets5 (>= 5.11.0~rc1), libstdc++6 (>= 5.2)
    

    Also, install the suggested packages:

    Suggests: git, ca-certificates, openssl
    

    You also need the following packages to compile:

    g++ cmake build-essential qt5-default qttools5-dev-tools libqt5svg5-dev qttools5-dev
    

    So, simply run the following commands in a terminal:

    sudo apt update 
    sudo apt install g++ cmake build-essential qt5-default qttools5-dev-tools libqt5svg5-dev qttools5-dev
    sudo apt install libqt5dbus5 libqt5network5 libqt5core5a libqt5widgets5 libqt5gui5 libqt5svg5
    sudo apt install git openssl ca-certificates
    
  2. Get Source Code

    Get the source code of the package by cloning the GitHub repository:

    cd ~/Downloads
    git clone https://github.com/flameshot-org/flameshot.git
    

    Change the working directory to flameshot:

    cd ~/Downloads/flameshot
    
  3. Building

    Run the following commands to create a building environment:

    mkdir build
    cd build
    cmake ../
    

    Now run the make command with sudo privileges and get ready for the installation:

    sudo make
    
  4. Install

    N.B: It is really HARD to uninstall this installation. Only proceed if you want to install flameshot and are not planning to remove it in future

    Finally, run:

    sudo make install
    

Now you can see that the latest version is installed!

Score:1
zw flag

In 2022 we can avoid compilation by using Flatpak or Snap versions of Flameshot:

  • Flatpak

    sudo apt install flatpak
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak install flathub org.flameshot.Flameshot
    
  • Snap

    sudo snap install flameshot
    

Appimage and .deb installers of the latest version are available at GitHub releases.

Someone avatar
my flag
Great answer N0rbert! The flatpak version is working great! However, the snap version isn't great at all... It's not even the official version! I would not like to use a development version. But anyway, your answer is great! **+1**.
Someone avatar
my flag
@ArchismanPanigrahi I tried installing using the deb, it will fail because of dependency issues.
us flag
@Someone And the appimage? Also, several .deb packages are available. Do all of them have the dependency issue?
Someone avatar
my flag
@ArchismanPanigrahi I haven't tested the AppImage yet. But I just wanted to tell you that the deb file broke my docker completely! *All of them have issues?* Yes, they all depend on the latest version of libs.. Of course, I haven't tried all the deb packages but the ones I tried did have issues.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.