How to Install & Setup PeaZip Archive Manager in Ubuntu 24.04

Last updated: November 25, 2024 — Leave a comment

This tutorial shows how to install PeaZip file archive manager and setup file manager integration in Ubuntu Desktop.

PeaZip is a free open-source archive manager for Windows, Linux, macOS, and BSD. It’s based on open source technologies of 7-Zip, p7zip, Brotli, FreeArc, PAQ, Zstandard, and PEA projects. And, supports over 200 archive types including 7Z / XZ / TXZ, ACE (*), BZ2 / TBZ, Brotli BR, GZ / TGZ, ISO, RAR, TAR, WIM, ZIP, ZIPX, ZPAQ, Zstandard ZST and more.

The free file archiver is easy to install in Ubuntu and other Linux through its official binary package. It provides a GUI window, and integrates well into file manager context menu.

Step 1: Install PeaZip

PeaZip provides Linux packages in 3 different formats. They include native .deb/.rpm, portable tarball, and universal Flatpak package. While, native .deb/.rpm is recommended for better integration.

Option 1: Install native .deb Package

1. First, go to PeaZip website to download the package for Linux:

For choice, you may download the packages from other download mirrors: sourceforge or Github releases page.

For Debian, Ubuntu, Linux Mint, etc, select download the DEB package, while Fedora, RHEL, openSUSE, etc users can choose the RPM package instead.

And, for KDE/LxQT Desktop, choose the Qt5 package, while GNOME, MATE, XFCE etc select download the GTK2 version. Though both work on each other!

2. After downloaded the DEB package, press Ctrl+Alt+T on keyboard to open terminal, then run command to install it:

sudo apt install ~/Downloads/peazip*.deb

If you didn’t save the package into user Downloads folder, then drag’n’drop the DEB package into terminal instead of typing ~/Downloads/peazip*.deb.

Finally, search for and launch the app from either start menu or GNOME ‘Show Apps’ screen depends on your desktop environment.

For file manager integration, go see the next Step 2.

Option 2: Use portable tarball

If you don’t have admin account for installing DEB package, or you’re on Arch, Manjaro, etc that does not support DEB or RPM, then choose download either “Portable Qt5” or “Portable GTK2” from the download link above.

Then, decompress the tarball, and navigate to the extracted folder, finally click run “peazip” file to launch the archive manager.

(Optional) Add to PATH & Menu (so you can launch it from start menu or Gnome overview). For long time use, it’s better to first move the portable PeaZip folder. In my case, I created “Apps” folder in user home, then put it there.

Next, right-click on the folder and select “Open in Terminal” to open the folder in terminal as working directory.

When terminal opens within that directory, run command to link the “pea” and “peazip” executable files into local bin. After that, you can run the 2 commands in anywhere without typing full path to file.

ln -s $PWD/peazip ~/.local/bin
ln -s $PWD/pea ~/.local/bin

Next, copy the .desktop and icon file to local directories so that you system can find them (You can alternatively do the copy & paste things in file manager after pressing Ctrl+H to view hidden folders).

  • First, copy the ‘peazip.desktop‘ to .local/share/applications, so you system can find the app and show its icon in start menu.
    cp res/share/batch/freedesktop_integration/peazip.desktop ~/.local/share/applications/
  • Create .local/share/icons in case it does not exist, then copy (and rename) the icon file:
    mkdir -p ~/.local/share/icons
    cp res/share/icons/peazip_app.png ~/.local/share/icons/peazip.png

If everything’s done correctly, you’ll be able to launch PeaZip from start menu or Gnome overview a few moments later.

Option 3: install PeaZip via Flatpak

For choice PeaZip is also available to install as Flatpak package that runs in sandbox environment.

Linux Mint 21/22 and Fedora Workstation (with 3rd party repo enabled) can search for and install the Flatpak package from either Software Manager or GNOME Software.

For Ubuntu, and other Linux, follow the steps below one by one to install the app as Flatpak package:

  1. First, press Ctrl+Alt+T on keyboard to open terminal, then run command to enable Flatpak support:
    sudo apt install flatpak

    For other Linux, follow the official setup guide to enable the package format support.

  2. Then, install the app as Flatpak package by running the command below in terminal:
    flatpak install https://dl.flathub.org/repo/appstream/io.github.peazip.PeaZip.flatpakref

Once installed, search for and launch the app either from start menu or GNOME overview depends on your desktop environment (may need a log out and back in for app icon visible).

Step 2: Setup PeaZip Context Menu Integration

NOTE: This step does NOT work for Flatpak package!

After installed the app, you can either launch it from start menu, or the “Open With” dialog for the assocaited files.

For choice, there are some built-in scripts to add more context menu options, including:

  • Add to Archive
  • Convert
  • Extract Archive
  • Extract Here
  • Extract to Folder
  • Open Archive

For GNOME Desktop (Nautilus file manager)

For GNOME, just copy all the scripts from ‘/usr/share/peazip/batch/freedesktop_integration/Nautilus-scripts/Archiving/PeaZip’ directory to ‘.local/share/nautilus/scripts’, then add executable permission for them. Finally, restart Nautilus via nautilus -q:

For choice, run the commands below one by one in terminal instead to do the job:

1. For Ubuntu with default GNOME desktop, press Ctrl+Alt+T to open terminal. Then, run command to navigate to the script folder (for DEB version):

cd /usr/share/peazip/batch/freedesktop_integration/Nautilus-scripts/Archiving/PeaZip

For the portable tarball, right-click on the portable PeaZip folder, then select “Open in Terminal” to first open that folder as working directory, then navigate to the script folder:

cd res/share/batch/freedesktop_integration/Nautilus-scripts/Archiving/PeaZip

2. Then, copy all the scripts in that folder, to .local/share/nautilus/scripts folder so your file manager can read them:

sudo cp * ~/.local/share/nautilus/scripts

And, change the ownership of them to your current user.

sudo chown $USER:$USER ~/.local/share/nautilus/scripts/*

3. Finally, remember to add executable permission to all the scripts (I forgot to take the command in screenshot):

sudo chmod u+x ~/.local/share/nautilus/scripts/*

And, quit nautilus file manager to apply changes:

nautilus -q

For KDE Plasma 5

For KDE Plasma 5, just copy and paste all the .desktop files from ‘/usr/share/peazip/batch/freedesktop_integration/KDE-servicemenus/KDE5-dolphin’ directory to ‘.local/share/kservices5/ServiceMenus’.

Or, press Ctrl+Alt+T to open up a konsole window, and run commands below instead.

1. Then, run command to create local kservices folder in case it does not exist:

mkdir -p ~/.local/share/kservices5/ServiceMenus/

2. Next, navigate to the script folder (for portable version, change the command accordingly):

cd /usr/share/peazip/batch/freedesktop_integration/KDE-servicemenus/KDE5-dolphin

3. Copy all the .desktop files from that folder to .local/share/kservices5/ServiceMenus

sudo cp *.desktop ~/.local/share/kservices5/ServiceMenus/

4. Finally, change the ownership to yours:

sudo chown $USER:$USER ~/.local/share/kservices5/ServiceMenus/*

If everything’s done properly, the context menu options should appear immediately!

Uninstall PeaZip

To uninstall PeaZip DEB package, open terminal (Ctrl+Alt+T) and run command:

sudo apt remove --autoremove peazip

To uninstall the portable package, just delete the PeaZip folder, the associated icon file from .local/share/icons, .desktop file from .local/share/applications, and delete the link files under .local/bin folder.

For the Flatpak package, run the command below to uninstall:

flatpak uninstall --delete-data io.github.peazip.PeaZip

Also run flatpak uninstall --unused to clear useless run-time libraries.

For the context menu options, press Ctrl+H in file manager and navigate to .local/share/nautilus/scripts for GNOME (or .local/share/kservices5/ServiceMenus for KDE Plasma 5), then delete the corresponding script files (or .desktop files for KDE).

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

No Comments

Be the first to start the conversation.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*