Как установить zip на linux
Перейти к содержимому

Как установить zip на linux

  • автор:

How to Install Zip and Unzip in Linux

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.

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

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

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

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:

For the unzip utility, install it by running:

How to Install Zip/Unzip in Arch/Manjaro Linux

For Arch-based distros, run:

For the unzip utility,

How to Install Zip/Unzip in OpenSUSE

On OpenSUSE, run the command below to install zip.

And to install unzip, execute.

For more information, read our article that shows how to create and extract a zip files in Linux.

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.

Как установить Zip и Unzip в Linux

hosting.energy недорогой хостинг сайтов

В этом руководстве мы покажем вам, как установить Zip и Unzip в системе Linux. Для тех из вас, кто не знал, Zip — это служебный инструмент командной строки, используемый для сжатия файлов и папок. Сжатие файлов и папок обеспечивает более быструю и эффективную передачу, хранение и отправку файлов и папок по электронной почте. С другой стороны, unzip — это служебный инструмент, который помогает распаковывать файлы и папки. Пакеты zip и unzip содержат программы для создания сжатого файла в Linux.

В этой статье предполагается, что у вас есть хотя бы базовые знания Linux, вы знаете, как использовать оболочку, и, что наиболее важно, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам для получения привилегий root. Я покажу вам пошаговую установку пакетов Zip и Unzip в Linux.

Установите Zip и Unzip в Linux

Шаг 1. Во-первых, убедитесь, что все ваши системные пакеты обновлены, выполнив следующие команды в терминале.

### Arch/Manjaro ###

Шаг 2. Установка Zip и Unzip в Linux.

  • Для дистрибутивов на основе Debian установите утилиту zip, выполнив команду:

После установки zip-утилиты вы можете создать zip-файл с помощью следующей команды:

  • Для системы CentOS установите zip-утилиту, выполнив команду:

После установки утилиты unzip вы можете извлечь ее в конкретную папку назначения, используя следующую команду:

Поздравляю! Вы успешно установили Zip и Unzip. Благодарим вас за использование этого руководства для установки Zip and Unzip в вашей системе Linux. Вы можете изучить здесь другие сообщения, связанные с Linux.

How to Install Zip and Unzip in Linux?

Zip is a command-line compression utility for files and directories. File and folder compression allows for quicker and more reliable file and folder transfer, storage, and email. Unzip, on the other hand, is a program that allows you to decompress files and directories.

  • zip is used to compress the files to reduce file size and also used as a file package utility. zip is available in many operating systems like Unix, Linux, windows, etc.
  • If you have limited bandwidth between two servers and want to transfer the files faster, then zip the files and transfer.
  • The zip program puts one or more compressed files into a single zip archive, along with information about the files (name, path, date, time of last modification, protection, and check information to verify file integrity). An entire directory structure can be packed into a zip archive with a single command.
  • The zip program puts one or more compressed files into a single zip archive, along with information about the files (name, path, date, time of last modification, protection, and check information to verify file integrity). An entire directory structure can be packed into a zip archive with a single command.
  • Compression ratios of 2:1 to 3:1 are common for text files. zip has one compression method (deflation) and can also store files without compression. zip automatically chooses the better of the two for each file to be compressed.
  • The program is useful for packaging a set of files for distribution; for archiving files; and for saving disk space by temporarily compressing unused files or directories.

Installing Zip:

You can install Zip by running the below command:

How to Install Zip and Unzip in Linux

After installation, use the command to verify that the zip was installed correctly or not.

How to Install Zip and Unzip in Linux

Verify Zip installed properly

Installing Unzip:

Similarly, you can install Unzip by running the below command:

How to Install Zip and Unzip in Linux

After installation, use the command to verify the unzip was installed correctly or not.

Verify Unzip installed properly

The zip and unzip utilities are already pre-installed in newer Linux distros like Ubuntu 20.04 and CentOS 8, so you’re good to go.

Как установить Zip и разархивировать в Linux

Zip — утилита командной строки, используемая для распаковки. Это утилита, помогающая распаковывать файлы и папки.

Преимущества архивирования файлов:

  • Сжатые/заархивированные файлы занимают меньше места на диске, оставляя вам больше места для работы.
  • Заархивированные файлы легко переносить, в том числе загружать, скачивать и прикреплять к сообщениям электронной почты.
  • Вы можете легко распаковывать заархивированные файлы в Linux, Windows и даже на Mac.

В этом разделе мы сосредоточимся на том, как установить утилиты zip и unzip в различных дистрибутивах Linux.

На этой странице:
  1. Как установить Zip/Unzip в Debian/Ubuntu/Mint
  2. Как установить Zip/Unzip в RedHa/CentOS/Fedora
  3. Как установить Zip/Unzip в Arch/Manjaro Linux
  4. Как установить Zip/Unzip в OpenSUSE

Давайте теперь посмотрим, как вы можете установить эти полезные утилиты командной строки.

Как установить Zip/Unzip в Debian/Ubuntu/Mint

Для дистрибутивов на основе Debian установите утилиту zip, выполнив команду.

После установки вы можете подтвердить установленную версию zip с помощью команды.

Для утилиты unzip выполните аналогичную команду, как показано.

Опять же, как и в случае с zip, вы можете проверить версию установленной утилиты unzip, запустив ее.

Как установить Zip/Unzip в RedHa/CentOS/Fedora

Как и в дистрибутивах Debian, установка утилит zip и unzip в дистрибутивах Redhat довольно проста.

Чтобы установить zip, просто выполните:

Для утилиты unzip установите ее, запустив:

Как установить Zip/Unzip в Arch/Manjaro Linux

Для дистрибутивов на основе Arch запустите:

Для утилиты распаковки

Как установить Zip/Unzip в OpenSUSE

В OpenSUSE выполните приведенную ниже команду, чтобы установить zip.

А чтобы установить unzip, выполните.

Для получения дополнительной информации прочитайте нашу статью, в которой показано, как создавать и распаковывать zip-файлы в Linux.

Заключение

Для более новых версий дистрибутивов Linux, таких как Ubuntu 20.04 и CentOS 8, утилиты zip и unzip уже поставляются -Установлено, и вы готовы к работе.

Мы рассмотрели, как установить инструменты командной строки zip и unzip в различных дистрибутивах Linux, а также рассказали о преимуществах сжатия файлов.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *