Я знаю p7zip
пакет не установлен по умолчанию на Ubuntu 18.04. Все еще Nautilus
может создать 7z
архивы. Как это возможно?
Наутилус изменил механизм сжатия архива.
Список динамических библиотек ldd $(which nautilus)
исполняемый файл подтверждает это.
Здесь самая важная строка ниже:
$ ldd /usr/bin/nautilus
...
libarchive.so.13 => /usr/lib/x86_64-linux-gnu/libarchive.so.13
...
Каково название его пакета?
$ dpkg -S /usr/lib/x86_64-linux-gnu/libarchive.so.13
libarchive13:amd64: /usr/lib/x86_64-linux-gnu/libarchive.so.13
Какая функциональность этот пакет (libarchive13
) обеспечивает?
$ apt-cache show libarchive13
Package: libarchive13
...
Description-en: Multi-format archive and compression library (shared library)
Archive formats supported are:
.
* tar (read and write, including GNU extensions)
...
* zip (read only, with some limitations, uses zlib)
...
* 7zip (read and write, with some limitations)
Кроме того, как дополнительное доказательство - если мы пытаемся удалить этот пакет, он удалит много базовых приложений из GNOME (Наутилус, Ролик Файла, Проявит, Центр управления GNOME и другие):
$ sudo apt-get purge libarchive13 --simulate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
evince* file-roller* fwupd* gir1.2-rb-3.0* gir1.2-totem-1.0*
gir1.2-totemplparser-1.0* gnome-control-center* gnome-software*
gnome-software-plugin-snap* grilo-plugins-0.3-base* gvfs-backends*
libappstream-glib8* libarchive13* libevdocument3-4* libevview3-3*
libgnome-autoar-0-0* libgrilo-0.3-0* libgxps2* librhythmbox-core10*
libtotem-plparser18* libtotem0* nautilus* rhythmbox*
rhythmbox-plugin-alternative-toolbar* rhythmbox-plugins* totem*
totem-plugins* ubuntu-desktop* ubuntu-software*
0 upgraded, 0 newly installed, 29 to remove and 53 not upgraded.
Таким образом, ответ: Наутилус 3.26 в Ubuntu 18.04 LTS не использует p7zip
, это использует функции от libarchive13
пакет.