How To Install 7-Zip on Ubuntu 22.04 LTS



Содержание
  1. What is ADB Sideload
  2. Manually Install OTA via Apply Update from ADB
  3. Install ADB Tools on your PC
  4. Enable USB Debugging [For Working Devices]
  5. Download Update File
  6. Boot Android Device to Stock Recovery
  7. Boot to Recovery when Device is working
  8. Boot to Recovery When Device is Stuck in Fastboot
  9. Use ADB Sideload to Manually Install OTA Update
  10. How to Use ADB Sideload in TWRP Recovery
  11. Install ADB on your PC
  12. Unlock the Bootloader
  13. Install TWRP Recovery
  14. Boot Android Device to TWRP Recovery
  15. Root your device [Optional, Depends on the File Type]
  16. Install ZIP via TWRP ADB Sideload
  17. About Chief Editor
  18. Sadique Hassan
  19. What is Magisk?
  20. What is SafetyNet
  21. Magisk vs SuperSu
  22. “How Magisk Managed to Save Itself”
  23. Magisk Hide
  24. Magisk vs Xposed
  25. How to Install Magisk Using TWRP Method
  26. Steps to Install Magisk Manager on any Android Device
  27. STEP 1: Boot your Device to Fastboot Mode
  28. STEP 2: Boot your device to TWRP Recovery
  29. STEP 3: Permanently Install the TWRP Recovery
  30. STEP 4: Install Magisk via TWRP Recovery
  31. How to Unroot any Android Device: Uninstall Magisk
  32. MAGISK DOWNLOADS/FAQs
  33. Magisk Version 26.1
  34. Magisk Version 26.0
  35. Magisk Version 25.2
  36. Magisk Version 25.1
  37. Magisk Version 24.1 [Support Android 13]
  38. Magisk Version 24
  39. Magisk Canary v23016 with vbmeta Fix
  40. Magisk App v23.0
  41. Magisk App v22.0
  42. Download Magisk Canary Fix: Android 11 Root Issues
  43. Magisk v21 | Magisk Manager v8.0.2
  44. Magisk v20.4 | Magisk Manager v8.0.0
  45. Some Other Magisk Manager APKs and ZIP Files
  46. About Chief Editor
  47. Sadique Hassan
  48. Install 7-Zip on Ubuntu 22.04 LTS Jammy Jellyfish
  49. How to Install Zip/Unzip in Debian/Ubuntu/Mint
  50. How to Install Zip/Unzip in RedHa/CentOS/Fedora
  51. How to Install Zip/Unzip in Arch/Manjaro Linux
  52. How to Install Zip/Unzip in OpenSUSE
  53. Installing 7zip on Linux
  54. Install 7zip Using a Package Manager
  55. Manually Installing 7zip
  56. Using 7zip
  57. Wildcards
  58. Recursiveness
  59. Listfiles
  60. Main Commands
  61. Main Switches/Options
  62. Exit Status Codes
  63. Conclusion

What is ADB Sideload

use adb sideload command stock twrp recovery

If you are just looking to transfer files, then you should instead look out for other TWRP options such as Mount, MTP, among others. Likewise, the same stands true in the case of stock recovery. The OTA update file will directly be installed onto your device, without being transferred first.

The major use of ADB sideload in stock recovery is for the installation of OTA or firmware updates. In this regard, there are two different options: Apply Update from ADB and Apply Update from SD Card. So what’s the difference between them? Well, the Apply Update from ADB option allows you to install the ZIP file via ADB commands.

Whereas the Apply Update from SD Card directly installs the update ZIP file from your device. As for this guide, our focus will be on the former. So without further ado, let’s get going. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps to install ZIP via adb sideload and TWRP or stock recovery.

Manually Install OTA via Apply Update from ADB

We are listing the required instructions under separate sections for ease of understanding. Proceed ahead in the exact sequence as mentioned:

Install ADB Tools on your PC

install adb platform tools windows

To begin with, download and extract the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary collection provided by Google and you should use this only. Once extracted, you should get the platform-tools folder. Keep this folder open, as we will be using it throughout this section.

Enable USB Debugging [For Working Devices]

usb debugging oneplus

UPDATE: Just to clarify, ADB Sideload does not require you to have USB Debugging enabled. We have only listed this step here so that we could boot the device to the stock recovery via ADB Command. If your device is stuck in Fastboot/Bootloop, then it’s not a cause of concern, you could still use the ADB Sideload method (explained in subsequent steps below). So if your device cannot access the OS, then just skip this step and move over to the next one.


Download Update File

Now download the required OTA or firmware update file for your device. Make sure that it is in a ZIP format. Likewise, rename this file to update.zip, so that it would be easy to write in the CMD prompt. Then transfer this file to the platform-tools folder as well.

Boot Android Device to Stock Recovery

There are two case scenarios here- when your device is in a perfectly working condition, and when your device is stuck in Fastboot Mode. We have listed the steps to boot to Recovery Mode for both these cases. You may refer to the one that meets your current device condition.

Boot to Recovery when Device is working

  1. Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
    command-prompt-adb-sideload-stock-recovery
  3. Type in the following command in the CMD window to boot your device to Stock Recovery
    adb reboot recovery
  4. If you face any issues, then refer to our guide on How to Fix All ADB and Fastboot Errors.

Boot to Recovery When Device is Stuck in Fastboot

  1. To begin with, power off your device.
  2. Then press and hold the Power and Volume Down to boot it to the Fastboot Mode.
    boot pixel 4a to fastboot mode
  3. Now use the Volume Keys to bring up the Recovery Mode option and press the Power key to confirm it.
    adb sideload
  4. Your device will now boot to the No command screen.
    adb sideload
  5. So press and hold the Power Button and while doing, so press and release the Volume Up key and then release the Power key as well. You would have bypassed the No command screen.

Use ADB Sideload to Manually Install OTA Update

  1. Once your device boots to stock recovery, use the Volume keys to select the “Apply Update from ADB” option and press the Power key to confirm.
    adb sideload
  2. You should now see a message along the following lines on your device:
    how-to-use-adb-sideload
  3. Now head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  4. Type in the following command in the CMD window to verify the ADB Sideload Connection:
    adb devices

    adb sideload command

  5. If you get the sideload keyword in the Command Prompt, then the connection stands successful and you may proceed ahead.
  6. So go to the CMD window (that you have opened inside platform-tools) and type in the below command to install the file:
    adb sideload update.zip
  7. In the above command, update.zip is the name of the file to be flashed (rename it accordingly, if needed). The installation process shall now begin and could take a few minutes.
  8. Once done, use the Volume keys to select the Reboot System Now option and press the Power key to confirm it.

That’s it, your device will now boot to the newly installed update. So this is how you could use the ADB sideload command in the stock recovery. Let’s now turn our attention towards the usage of this adb sideload feature in the custom development field i.e TWRP Recovery.

How to Use ADB Sideload in TWRP Recovery

While the usage of Sideload in TWRP is also limited to flashing ZIP files, but in this instance, this file takes a broader approach. As opposed to stock recovery usage where the ZIP was treated as a firmware update file, here a ZIP file could mold into various scenarios. For example, it could be a Magisk Module or even a Custom ROM. The instructions steps, however, remain the same. So on that note, let’s check out the steps to use the ADB sideload feature in the TWRP Recovery.

Install ADB on your PC

install adb platform tools windows use adb sideload command

First off, download Android SDK Platform Tools on your PC. These are the official ABD and Fastboot binary provided by Google. So download and extract it to any convenient location on your PC. doing so shall give you the platform-tools folder. We will be using this folder only to flash ZIP via adb sideload and TWRP in the below steps, so keep it open.

Unlock the Bootloader

To begin with, you will have to unlock the device’s bootloader (this is the first prerequisite for installing a custom recovery like TWRP). Do keep in mind that doing so will wipe off all the data from your device and might also make the warranty null and void. So if that’s well and good, then refer to our guide to Unlock Bootloader of Any Android Device.

Install TWRP Recovery

Next up, you will also have to install TWRP Recovery on your Android device. To do so, there are two different approaches- you could either temporarily install TWRP for one-time usage or permanently install it. Here are the instructions for both:

Boot Android Device to TWRP Recovery

  1. Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Type in the following command in the CMD window:
    adb reboot recovery

    boot-android-twrp-recovery-use-adb-sideload

  4. Your device will now boot to the TWRP Recovery. You may now proceed to the next step to flash the required ZIP file via adb sideload and TWRP.

Root your device [Optional, Depends on the File Type]

Install ZIP via TWRP ADB Sideload

  1. First off, transfer the required ZIP file to the platform-tools folder on your PC.
  2. Furthermore, rename it to something shorter, say mod.zip so that it becomes easier in typing in the CMD window.
  3. Likewise, type in CMD in this folder’s address bar to open Command Prompt.
  4. Now from the TWRP’s home screen, go to Advanced and select ADB Sideload.
    how to use adb sideload in twrp recovery
  5. Then perform a right swipe on the Swipe to Start Sideload button situated at the bottom.
  6. After this, go to the CMD window and type in the below command, and hit Enter.
    adb sideload mod.zip
  7. In the above command, mod.zip is the name of the file being flashed via TWRP.
  8. Once the flashing is complete, you may reboot the device to OS via the Reboot > System option in TWRP.
Дополнительно:  Noize MC - Текст песни "Какая Жалость" | Lyrics at

That’s it, the process stands complete. So with this, we conclude the guide on how to use the adb sideload command on both the stock as well as custom TWRP Recovery. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

About Chief Editor

How To Install 7-Zip on Ubuntu 22.04 LTS

Sadique Hassan

A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”


A comprehensive guide on “Everything About Magisk- Manager, Modules and More” covers all the important Magisk-related terms, including its definition, comparison vs SuperSu and Xposed, and the complete installation process via TWRP. A detailed instruction set regarding the unrooting of any Android device by uninstalling the Magisk is also given. If you have complete knowledge about Magisk and its installation steps, then directly head over to the Magisk Flashable ZIP and Magiks Manager APK Downloads section.

If you have been into the open-source environment for the past couple of years, you might well have heard the Magisk quite a couple of times. A tool developed by topjohnwu, it is used for customizing your device and getting root access. You may ask that the same could also be achieved by SuperSu, so why use this? Well, Magisk is way more than just rooting your Android Device. Moreover, Google’s recent implementation of the ‘SafetyNet’ proved to be the final nail in the coffin for SuperSu.



What is Magisk?

magisk CP

Whenever one talks about Magisk, the word ‘systemless root’ is bound to appear. This is because of the fact that Magisk roots your device systemless. In simpler terms, it means that it is able to modify the system without even letting the device know that a change has occurred. Also, Magisk very intelligently makes all the changes in the boot partition rather than actually modifying the system partition. As a result, neither Google nor your device has any idea that the system has been tampered with.

What is SafetyNet

Unroot Android Device- SafetyNetTest

To further tighten the security, Google introduced a tool called ‘SafetyNet’. Its role was simple- to check whether there is any modification with the system partition or not. And if it is found that the system has been tampered with, it will identify that app and stop its functionalities.

Magisk vs SuperSu

Unroot Android Device-Magisk vs SuperSu

Before Magisk came into the fore, it was SuperSu all along. It was the sole app that almost everyone used for rooting their device. But when Google implemented the SafetyNet, it started to lose its shine. As a result, people started looking for alternatives and hence Magisk was born. But what exactly was the issue with SuperSu? It was the way it used to work.

SuperSu always made changes directly to the system partition rather than modifying the boot partition. Working in the ‘system’ way, rather than ‘systemlessly’- was all well and fine until Google introduced the SafetyNet feature.

“How Magisk Managed to Save Itself”

This is because it never made any changes whatsoever to the system files or the system partition. The only changes it made were to the boot partition (that is why it is called a systemless root method). Because of this, it managed to escape from the eyes of SafetyNet. This lead to the birth of one of its most amazing features- Magisk Hide.

Magisk Hide

Magisk vs Xposed

Unroot Android Device- Magisk vs Xposed

Next, you may ask how is Magisk different from Xposed. Although they both provide tons of modules to work with, that is where the similarities end. Apart from modules, Magisk is able to bypass SafetyNet, is constantly updated, provides the all-important ‘Magisk Hide’ feature and most importantly is able to root your Android device. Moreover, Xposed is also based on the same ‘system modification’. So with the introduction of SafetyNet, its performance and stability took more than a decent hit.

But now that is a thing of the past. This is because Xposed could easily be installed as a Magisk Module, thereby working ‘systemlessly’ throughout the device. More on that could be read here: How to Install Xposed Framework on Android 9.0 Pie. Now enough of the theory part, let’s move on to the process of installing the Magisk Manager and Magisk Modules. Furthermore, we would also have a look at the process of unrooting the Android device.

How to Install Magisk Using TWRP Method

1. Download the TWRP Recovery for your device. The official version could be downloaded from the TWRP website. But if no official version has been released till now, search for an unofficial one over at XDA. Make sure to download both the ZIP file (.zip) as well as the image file (.img). In some cases, you will only find a zip file (like the ‘Redmi K20 Pro’). So download the zip file only.

2. Download the latest Magisk installer zip file from the below section. If this version of Magisk doesn’t work out for you, head over to the FAQs section to try out the earlier builds.

3. Download and install the ADB and Fastboot Platform Tools. Inside the folder, while pressing the Shift key, right-click on an empty location. Select ‘Open PowerShell window here’. You may also have a look at our guide for the same.

4. Enable USB Debugging on your device: Go to ‘Settings’ > ‘About Phone’ > Tap on ‘Build Number’ 7 times > Go back to ‘Settings’ > ‘System’ > ‘Advanced’ > ‘Developer Options’ > ‘Enable USB Debugging’ from there. Having an issue? Refer to our detailed guide on how to enable USB Debugging.

This is all we would be needing right now. Head over to the next section to begin the installation process.

Steps to Install Magisk Manager on any Android Device

The below guide has been divided into sub-sections. The first section talks about booting the device to fastboot mode. In the second section, the device will be temporarily booted to TWRP Recovery. The third section would provide instructions on how to permanently install TWRP. Finally, instructions regarding the installation of Magisk would be provided. So let us begin with the process.

STEP 1: Boot your Device to Fastboot Mode

  1. Connect your device to PC via USB Cable.
  2. Move the downloaded Magisk-v19.3.zip file inside the ADB and Fastboot Platform Tools.
  3. In the PowerShell window, type the below code to make sure that the device is properly connected to the PC.
    adb devices

Useful ADB_Fastboot Commands- adb devices

  1. If you get an alphanumeric code with ‘adb device’ written next to it, proceed further (see above image). Otherwise, check whether the USB drivers are properly installed and USB Debugging is enabled.
  2. Now, you need to reboot your device to bootloader/fastboot mode. Type the following command:
    adb reboot bootloader

With the device now in fastboot mode, you need to temporarily boot it into TWRP recovery before installing it permanently.

STEP 2: Boot your device to TWRP Recovery

  1. Transfer the download recovery image file inside the ADB and Fastboot Platform Tools folder.
  2. Rename the image file to twrp. The complete name would hence be twrp.img
  3. In the PowerShell window, type the below code to temporarily boot your device to TWRP Recovery:
    fastboot boot recovery-name.img
  4. In our case, it would be:
    fastboot boot twrp.img
  5. Your device will be successfully booted to TWRP recovery. Now you need to permanently install it. Follow the steps mentioned in the next section.

STEP 3: Permanently Install the TWRP Recovery

  1. Go to the ‘Mount’ option of TWRP.
  2. Enable ‘MTP’ from there. Now your device will be shown on the PC. Transfer the recovery zip file to your device.
    Unroot Android Device- Enable MTP
  3. Under TWRP, go to ‘Install’.
  4. Select the twrp recovery zip file.
    Unroot Android Device-Install TWRP
  5. Right Swipe to flash it.

If the above method fails, try out the second method given in the 2nd Question under FAQs.

STEP 4: Install Magisk via TWRP Recovery

Unroot Android Device-install MAgisk

  1. Transfer the download Magisk zip file to the device’s internal storage.
  2. Under TWRP, go to Install.
  3. Select Magisk-v19.3.zip and swipe to confirm flash.

If the above method fails, head over to 3rd Question under FAQs. That method will surely work.

That’s it. Your device is now rooted with Magisk. On rebooting, you will see an app called Magisk Manager. Open it. If needed, update the Magisk or the Magisk Manager by clicking the ‘UPDATE’ button next to it. If both of them are updated to the latest version, you will see the text ‘INSTALL’ next to them. Leave as it is in that case.

If you want to hide any app from the root, tap the menu button situated at the top left. Select the option ‘Magisk Hide’ and tick mark the preferred app. Moreover, you may also check the SafetyNet status. Just tap on the ‘Tap to start SafetyNet’ option. If it asks for downloading an extension, chose OK. You should see the message SafetyNet Check Success, with both the ‘ctsProfile’ and ‘basicIntegrity’ marked as true.



How to Unroot any Android Device: Uninstall Magisk



MAGISK DOWNLOADS/FAQs

Magisk Version 26.1

Download: Magisk Version 26.1 APK [Release Changelog]

Magisk Version 26.0

You may now get hold of the latest Magisk version 26.0 from below. On the other hand, if you are on an older version of Magisk and just want to update to the latest v26, then refer to our guide on How to Update Magisk to Version 26

Download: Magisk Version 26.0 APK [Release Changelog]

Magisk Version 25.2

Grab hold of the latest Magisk App version 25.2 from the below link. And if you want to update Magisk from an earlier version of Magisk, then check it this guide- How to Update Magisk to Version 25.2

Download: Magisk Version 25.2 APK [Release Changelog]

magisk version 25.2

Magisk Version 25.1

You could now download the latest Magisk version 25.1 from the below official GitHub link. If you are currently on Magisk version 24.1, then you could easily update to version 25.1 using this guide- How to Update Magisk to Version 25.1.

Download: Magisk Version 25.1 APK [Release Changelog]

magisk version 25

Magisk Version 24.1 [Support Android 13]

The new Magisk version 24.1 now supports Android 13. I have tested it on Pixel 4A running the First Developer Preview build of Android 13. So if you are also on the latest OS build, then it is recommended to download this version only. Download:

Дополнительно:  What is scaling and root planing

Magisk Version 24

Magisk Version 24 is now finally available to download, and with that, there are a plethora of new and noteworthy changes (and a few removals too). To begin with, this build is now compatible with Android 12. Then there’s the introduction of Zygisk as well.

How To Install 7-Zip on Ubuntu 22.04 LTS

On the flip side, the Magisk Modules repo and MagiskHide functionality have been removed. To read the complete changelog and to update your Magisk to the latest version 24, please refer to our guide on How to Install or Update Magisk to version 24- Welcome Zygisk!

Magisk Canary v23016 with vbmeta Fix

The latest build of Magisk Canary comes with the vbmeta header fix. Hence you wouldn’t have to manually disable the verity checks on Pixel 6/Pro and other devices running Android 12. Download:  Magisk Canary App version 23016.

Magisk App v23.0

Download the Magisk App APK v23.0. For the unawares, starting with version 22, Magisk now comes inside a single APK package. This is the case with version 23 as well (and will always be for every newer version that would release after this). So you could directly install this app, patch the stock boot.img and flash it via Fastboot. But what about the Magisk ZIP? Well, just rename the Magisk APK to Magisk ZIP and it would automatically become a TWRP flashable ZIP!

Magisk App v22.0

Download Magisk Canary Fix: Android 11 Root Issues

Magisk v21 | Magisk Manager v8.0.2

Magisk v20.4 | Magisk Manager v8.0.0

Some Other Magisk Manager APKs and ZIP Files

  • Magisk Manager ZIP:  | Magisk v8 | 
  • Magisk APKs:  |  | 

Unroot Android Device-ADB Sideload

  1. Transfer the recovery zip file inside the ADB and Fastboot Platform Tools folder.
  2. Rename it to twrp. The complete name would hence be twrp.zip
  3. Under TWRP, go to ‘Advanced’.
  4. Tap on ‘ADB Sideload’.
  5. Swipe to start the sideload process.
  6. Enter the below command in the PowerShell window to begin the process:
    adb sideload recovery-name.zip
  7. In our case, it will be
    adb sideload twrp.zip

TWRP will now definitely be permanently installed on your device.

  1. Transfer the Magisk-v19.3.zip to the folder where ADB and Fastboot Platform Tools are present.
  2. Under TWRP, go to ‘Advanced’ > ‘Sideload’ > ‘Swipe to start sideload’
  3. Type the below command to flash Magisk:
adb sideload Magisk-v19.3.zip

That’s it. Magisk will now be successfully installed on your device.


So this was a comprehensive guide regarding “Everything About Magisk- Manager, Modules and More”. In a nutshell, we discussed:

  • What is Magisk?
  • Discussion about SafetyNet.
  • Difference between Magisk and SuperSu.
  • What is Magisk Hide?
  • Magisk vs Xposed Framework.
  • How to Install Magisk:
    • Installing TWRP Recovery
    • Installing the Magisk Manager App
  • Unrooting an Android Device
    • Uninstalling Magisk
  • FAQs

With that, we come to the end of our tutorial on “Everything About Magisk- Manager, Modules and More”. If you have any issues with respect to any part of this guide, do let me know in the comments section below. I Will clear all of your doubts in the easiest way possible. Cheers 🙂

About Chief Editor

How To Install 7-Zip on Ubuntu 22.04 LTS

Sadique Hassan

A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”

Install Zip and Unzip on Linux

In this tutorial, we will show you how to install Zip and Unzip on a Linux system. For those of you who didn’t know, Zip is a command-line utility tool used for compressing files and folders. Compression of files & folders enables faster and more efficient transfer, storage, and emailing of files and folders. On the other hand, unzip is a utility tool that helps you decompress files and folders. Both zip and unzip package contains programs to create a compressed file in Linux.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Zip and Unzip packages on Linux.

  • A server running one of the following operating systems: Ubuntu, CentOS, and Arch Linux
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A or access to the . We recommend acting as a , however, as you can harm your system if you’re not careful when acting as the root.

### CentOS/RHEL-based ###

sudo dnf update

### Ubuntu/Debian-based ###

sudo apt update

### Arch/Manjaro ###

sudo pacman -Syu

Step 2. Installing Zip and Unzip on Linux.

  • For Debian-based distributions, install the zip utility by running the command:
sudo apt install zip
sudo apt install unzip
  • For the CentOS system, install the zip utility by running the command:
sudo dnf install zip
sudo dnf install unzip
  • For Arch Linux-based distributions, install the zip utility by running the command:
sudo pacman -S zip
sudo pacman -S unzip

Step 3. How to Unzip a ZIP File in Linux.

zip -r compressed_filename.zip folder_name

Using unzip command in Linux is simple. You need to tell unzip the name of the zip file which you want to unzip.

unzip compressed_filename.zip -d destination_folder

Zip Linux Command Syntax:

zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]

The default action is to add or replace zipfile entries from list, which 
can include the special name - to compress standard input.

If zipfile and list are omitted, zip compresses stdin to stdout.

# Here are the options that we can use with the ZIP commands-

-f freshen: only changed files      -u update: only changed or new files
-d delete entries in zipfile        -m move into zipfile (delete OS files)
-r recurse into directories         -j junk (don't record) directory names
-0 store only                       -l convert LF to CR LF (-ll CR LF to LF)
-1 compress faster                  -9 compress better
-q quiet operation                  -v verbose operation/print version info
-c add one-line comments            -z add zipfile comment
-@ read names from stdin            -o make zipfile as old as latest entry
-x exclude the following names      -i include only the following names
-F fix zipfile (-FF try harder)     -D do not add directory entries
-A adjust self-extracting exe       -J junk zipfile prefix (unzipsfx)
-T test zipfile integrity           -X eXclude eXtra file attributes
-y store symbolic links as the link instead of the referenced file
-e encrypt                          -n don't compress these suffixes
-h2 show more help

Congratulations! You have successfully installed Zip and Unzip. Thanks for using this tutorial for installing the Zip and Unzip on your Linux system. For detailed information, you can head to the command’s man page.

VPS Manage Service Offer

Install 7-Zip on Ubuntu 22.04

In this tutorial, we will show you how to install 7-Zip on Ubuntu 22.04 LTS. For those of you who didn’t know, 7-Zip is open-source software available to compress and decompress files and folders into various formats. 7-Zip is still a popular compression of files and directories over cross-platform devices. Formats that 7-Zip supports such as 7z, ZIP, RAR, GZIP, BZIP2, TAR, CAB, ISO, ARJ, LZH, CHM, Z, CPIO, RPM, DEB, and many more formats.

  • A server running one of the following operating systems: Ubuntu 22.04, 20.04, and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A or access to the . We recommend acting as a , however, as you can harm your system if you’re not careful when acting as the root.

Install 7-Zip on Ubuntu 22.04 LTS Jammy Jellyfish

sudo apt update
sudo apt upgrade

Step 2. Installing 7-Zip on Ubuntu 22.04.

sudo apt install p7zip-full

Step 3. Using 7-Zip Commands.

Once successfully installed, to test its model and choices to make use of, we will use:

7z -h
<Commands>
  a : Add files to archive
  b : Benchmark
  d : Delete files from archive
  e : Extract files from archive (without using directory names)
  h : Calculate hash values for files
  i : Show information about supported formats
  l : List contents of archive
  rn : Rename files in archive
  t : Test integrity of archive
  u : Update files to archive
  x : eXtract files with full paths

<Switches>
  -- : Stop switches parsing
  -ai[r[-|0]]{@listfile|!wildcard} : Include archives
  -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives
  -ao{a|s|t|u} : set Overwrite mode
  -an : disable archive_name field
  -bb[0-3] : set output log level
  -bd : disable progress indicator
  -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
  -bt : show execution time statistics
  -i[r[-|0]]{@listfile|!wildcard} : Include filenames
  -m{Parameters} : set compression Method
    -mmt[N] : set number of CPU threads
  -o{Directory} : set Output directory
  -p{Password} : set Password
  -r[-|0] : Recurse subdirectories
  -sa{a|e|s} : set Archive name mode
  -scc{UTF-8|WIN|DOS} : set charset for for console input/output
  -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files
  -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands
  -sdel : delete files after compression
  -seml[.] : send archive by email
  -sfx[{name}] : Create SFX archive
  -si[{name}] : read data from stdin
  -slp : set Large Pages mode
  -slt : show technical information for l (List) command
  -snh : store hard links as links
  -snl : store symbolic links as links
  -sni : store NT security information
  -sns[-] : store NTFS alternate streams
  -so : write data to stdout
  -spd : disable wildcard matching for file names
  -spe : eliminate duplication of root folder for extract command
  -spf : use fully qualified file paths
  -ssc[-] : set sensitive case mode
  -ssw : compress shared files
  -stl : set archive timestamp from the most recently modified file
  -stm{HexMask} : set CPU thread affinity mask (hexadecimal number)
  -stx{Type} : exclude archive type
  -t{Type} : Set type of archive
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options
  -v{Size}[b|k|m|g] : Create volumes
  -w[{path}] : assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]{@listfile|!wildcard} : eXclude filenames
  -y : assume Yes on all queries

For example, create .7z file from multiple files and folders:

7z a file.7z file1.txt folder file2.jpg file{4..9}.jpg

For example, create .zip file:

7z a file.zip file1.png file2.txt

For example extract a file with full paths:

7z x file.7z

For example, add files/Update archive file:

7z u file.7z file1.txt folder/

Congratulations! You have successfully installed 7-Zip. Thanks for using this tutorial for installing the 7-Zip compression of files and directories on the Ubuntu 22.04 LTS Jammy Jellyfish system. For additional help or useful information, we recommend you check the official 7-Zip website.

Дополнительно:  The unlocker root

VPS Manage Service Offer

Zip is a command-line utility tool used for compressing files and folders. Compression of files & folders enables faster and more efficient transfer, storage, and emailing of files and folders. On the other hand, unzip is a utility tool that helps you decompress files and folders.

Benefits of zipping files:

  • Compressed/zipped files take up less disk space, leaving you with more space to work with.
  • Zipped files are easy to transfer including uploading, downloading, and attaching them on email.
  • You can easily decompress zipped files on Linux, Windows, and even mac.

In this topic, we focus on how you can install the zip and unzip utilities on various Linux distributions.

On this page:

Let’s now see how you can install these useful command-line utilities.

How to Install Zip/Unzip in Debian/Ubuntu/Mint

For Debian-based distributions, install the zip utility by running the command.

$ sudo apt install zip

After installation, you can confirm the version of zip installed using the command.

$ zip -v

For the unzip utility, execute a similar command as shown.

$ sudo apt install unzip

Again, just like zip, you can confirm the version of the unzip utility installed by running.

$ unzip -v

How to Install Zip/Unzip in RedHa/CentOS/Fedora

Just like on Debian distributions, installing zip and unzip utilities on Redhat distros is quite simple.

To install zip, simply execute:

$ sudo dnf install zip

For the unzip utility, install it by running:

$ sudo dnf install unzip

How to Install Zip/Unzip in Arch/Manjaro Linux

For Arch-based distros, run:

$ sudo pacman -S zip

For the unzip utility,

$ sudo pacman -S unzip

How to Install Zip/Unzip in OpenSUSE

On OpenSUSE, run the command below to install zip.

$ sudo zypper install zip

And to install unzip, execute.

$ sudo zypper install unzip
Conclusion

For newer versions of Linux distros such as Ubuntu 20.04 and CentOS 8, the zip and unzip utilities already come pre-installed and you are good to go.

We covered how to install zip and unzip command-line tools on various Linux distributions and the benefits that come with compressing files.

If you read this far, tweet to the author to show them you care. Tweet a thanks

Photo of author


In this tutorial, we will show you how to install Zip and Unzip on a Linux system.

Zip is a command-line utility tool used to compress files in Linux. File and folder compression allows for quicker and more reliable file and folder transfer, storage, and email. On the other hand, unzip is a utility tool that helps you decompress files and folders.

The zip format is hugely popular because it can:

  • Compressed/zipped files so that they eat up less disk space.
  • Zipped files are small enough to conveniently transfer over the internet, including uploading, downloading, and attaching them on email.
  • Compress and decompress programs that supports zip format are available on major platforms such as Linux, Windows and macOS.

By default, zip and unzip are not installed in most Linux systems due to licensing restrictions. In this article, we’ll show you how to install zip and unzip in major Linux distributions.

Also check out: How to install HandBrake, Newman, Cisco Webex, vim in Ubuntu and Debian.

Step 1. Update the system

sudo dnf update

For Ubuntu/Debian-based distro (Linux Mint, Pop! OS)

sudo apt update

For Arch/Manjaro distro

sudo pacman -S zip
sudo pacman -S unzip

Step 2. Installing zip/unzip using package managers.

sudo apt install zip
sudo apt install unzip

Sit back and wait a minute, until the installation is finished. The first line installs the zip package while the latter fetches the unzip utility for decompression. Once the installation completes, you can confirm the version number of zip using the command below.

For CentOS/Fedora system, install the zip with dnf package manager by running the command:

sudo dnf install zip
sudo dnf install unzip
sudo pacman -S zip
sudo pacman -S unzip

The syntax for zipping a folder includes -r flag, which stands for recursive:

     
  

We hope that the information above helped you successfully install zip and unzip on your Linux system. We’ve also covered other software installation for Linux, especifically Debian and Ubuntu, such as how to install Discord and Chromium in case you’re interested.

If you have any suggestion, please feel free to leave a comment below.

The 7zip program is a file archiver (a program that supports multiple files in the same archive) that uses the lzma compression algorithm. It’s native file format is the .7z file, and additionally it supports a huge set of file formats, including:

  • Packing/unpacking: 7z, xz, bzip2, gzip, tar, zip, wim
  • Unpacking only: ar, arj, cab, chm, cpio, cramfs

Other key features are:

  • For ZIP and GZIP files, it promises a better compression ratio than standard programs, like pkzip and WinZip
  • AES 256 encryption in 7z and ZIP formats
  • Self-extracting capability for 7z format
  • Localization for 80+ languages

In this tutorial we’ll cover how to install 7zip on Linux using a package manager (on Debian and RHEL based distros), and how to install it manually. We’ll also cover 7zip‘s various commands and options, and we’ll provide some examples of using 7zip.

Table of Contents
  1. Installing 7zip on Linux
  2. Using 7zip
  3. Conclusion

Installing 7zip on Linux

There are two ways of installing 7zip on your system. The easiest (and preferable)  way is using your distro’s package system. If the package is not available, you can download a pre-compiled version at 7zip site’s, https://www.7-zip.org/

Install 7zip Using a Package Manager

Debian-based distros (like Debian and Ubuntu):

apt-get -y install p7zip

Red Hat based distros (Fedora, CentOS, AlmaLinux, Rocky Linux):

yum -y install p7zip

Manually Installing 7zip

To manually install 7zip access the project’s download page at https://www.7-zip.org/download.html and download the versions corresponding to your system ( on most systems it will be the 64-bit Linux x86-64 version). You can use wget (Debian/Ubuntu) or curl (Red Hat/CentOS) command for downloading (the name of the file may be different, due to version updates):

curl -LOJ https://www.7-zip.org/a/7z2107-linux-x64.tar.xz
wget https://www.7-zip.org/a/7z2107-linux-x64.tar.xz

After the download, extract the file from the tar package with the command:

tar xf 7z*-linux-x64.tar.xz 7zzs
./7zzs --help | head

If everything is Ok, a similar output will be shown, with the program version and usage.

At this point the program is ready to use, but, for convenience, you should install it on a directory on the system’s path, so other people can use it and you can only type the program name (without the “./” part). A typical place to put the file is in directory /usr/local/bin (you need root permissions, so execute the command as root or with sudo):

cp 7zzs /usr/local/bin
sudo cp 7zzs /usr/local/bin

It’s more convenient to set an easier name for the program. So we can create a symbolic link to the program, called for example, 7zip, or other name of your preference. Indeed, you can even create multiple links with different names to the same program. You’ll also need root/sudo permissions for this step:

ln -s /usr/local/bin/7zzs /usr/local/bin/7zip
sudo ln -s /usr/local/bin/7zzs /usr/local/bin/7zip
tar xf 7z*-linux-x64.tar.xz 7zzs MANUAL

Using 7zip

The command line options are made of one command (without a - character) and, depending of the command, zero or more switches (preceded by a - character) and file/directory/listfile specification.

7zip <command> [<switches>...] <archive_name> [<file_names>...] [@listfile]

Wildcards

* means a sequence of any character

? means any character, once

Recursiveness

Some switches deal with recursiveness (going deep into the directory tree, looking for files to compress). Recursiveness can be defined in three ways:

  • -r: enable recursion on subdirectories.
  • -r-: disable recursion on subdirectories (default behaviour).
  • -r0: enable recursion subdirectories only for wildcards

Listfiles

/etc
/home
/var/www

To use it, you can just run a command like:

7zip a backup.7z @backup.txt

Main Commands

  1. a: add files to archive. The file must not exist in the archive. To update existing files, use the update command (u).
  2. l: list archive contents
  3. i: show info about supported formats
  4. t: test integrity of archive
  5. u: update files to archive (newer versions of already existing files)
  6. x: extract files with full path

Main Switches/Options

Exit Status Codes

It is also important to take in consideration the result code of the operation (by checking the value of bash environment variable $?). It should be 0 (zero), indicating a successful operation. This is especially useful in scripts, to check if an operation was completed witout errors or not. Value different from 0 indicates an error occurred, as per the below table:

  1. 0: No error.
  2. 1: Non-fatal error (ex: one or more files could not be compressed because they where locked by another application).
  3. 2: Fatal error.
  4. 7: Command Line error (invalid synxtax).
  5. 8: No enough memory available to execute the operation.
  6. 255: User interrupted the process (with Ctrl+C or kill).

Examples of Using 7zip

This adds all files and subdirs from /etc to archive etc.zip (in zip format)

7zip a etc.zip /etc

This adds all files and subdirs from /etc to archive  etc.7z (in 7zip format)

7zip a etc.7z /etc
7zip l etc.7z
7zip x etc.7z
7z x etc.7z -o/tmp/restoredir

Conclusion

In this tutorial we covered how to install 7zip on Linux (Debian and RHEL based distros) using  a package manager or how to install 7zip manually. We also covered 7zip’s various options, some particularities, and gave a few examples of how to use it. If you have any feedback or issues feel free to let us know in the comments.

Оцените статью
Master Hi-technology
Добавить комментарий