[Libguestfs] Workaround to get supermin to work on Slackware

shiftag shiftag at nanotek.info
Fri Jun 2 00:35:06 UTC 2023


On 6/1/23 15:21, Richard W.M. Jones wrote:
> On Thu, Jun 01, 2023 at 07:07:45AM +0400, shiftag wrote:
>> Hello,
>>
>> I'm experimenting with a Software using supermin. However, it look
>> like supermin cannot work because of Slackware package manager.
>>
>> $ supermin --list-drivers
>> arch/pacman               not-detected
>> debian/dpkg                 not-detected
>> openmandriva/rpm    not-detected
>> mageia/rpm                  not-detected
>> opensuse/rpm              not-detected
>> ibm_powerkvm/rpm    not-detected
>> fedora/rpm                    not-detected
>>
>> Is there any workaround to make the following command works :
>>
>> $ supermin --prepare bash coreutils ethtool iproute iputils kmod
>> net-tools pciutils perf procps-ng python strace strace systemd
>> systemd-udev util-linux vim -o supermin.d
> supermin fundamentally relies on having a package manager supporting a
> few operations (not all are required):
>
> https://github.com/libguestfs/supermin/blob/057ea99a3211057d2cb2c9971afe56e0a85e0f78/src/package_handler.mli#L90
>
> It's been a while since I used Slackware.  Does it have a package
> manager which keeps track of packages, files installed by packages,
> and provide a way to list installed packages and files used by
> installed packages, etc?
>
> Rich.
>
There are two principals package manager "slackpkg" and "sbopkg" and 
both store installed packages information in "/var/log/packages" using a 
file format.

For example, to check some information related to "hivex" installed package:

$ ls /var/log/packages/hivex*
/var/log/packages/hivex-1.3.23-x86_64-1_SBo

So the package is installed.

$ cat /var/log/packages/hivex-1.3.23-x86_64-1_SBo

PACKAGE NAME:     hivex-1.3.23-x86_64-1_SBo
COMPRESSED PACKAGE SIZE:     184K
UNCOMPRESSED PACKAGE SIZE:     610K
PACKAGE LOCATION: /tmp/hivex-1.3.23-x86_64-1_SBo.tgz
PACKAGE DESCRIPTION:
hivex: hivex (Windows Registry Extractor System)
hivex:
hivex: Hivex is a tool for reading windows registry
hivex: Hive binary files. It uses C API or exports
hivex: it to a XML file.
hivex:
hivex:
hivex: Homepage:https://libguestfs.org
hivex:
hivex:
hivex:
FILE LIST:
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/hivexget
usr/bin/hivexml
usr/bin/hivexregedit
usr/bin/hivexsh
usr/doc/
usr/doc/hivex-1.3.23/
usr/doc/hivex-1.3.23/FUZZING
usr/doc/hivex-1.3.23/LICENSE
usr/doc/hivex-1.3.23/README.md
usr/doc/hivex-1.3.23/SECURITY
usr/doc/hivex-1.3.23/hivex.SlackBuild
usr/include/
usr/include/hivex.h
usr/lib64/
usr/lib64/libhivex.so.0.0.0
usr/lib64/ocaml/
usr/lib64/ocaml/hivex/
usr/lib64/ocaml/hivex/METAusr/lib64/ocaml/hivex/hivex.cmx
usr/lib64/ocaml/hivex/hivex.mli
usr/lib64/ocaml/hivex/libmlhivex.a
usr/lib64/ocaml/hivex/mlhivex.a
usr/lib64/ocaml/hivex/mlhivex.cma
usr/lib64/ocaml/hivex/mlhivex.cmxa
usr/lib64/ocaml/stublibs/
usr/lib64/ocaml/stublibs/dllmlhivex.so
usr/lib64/ocaml/stublibs/dllmlhivex.so.owner
usr/lib64/perl5/
usr/lib64/perl5/Win/
usr/lib64/perl5/Win/Hivex.pm
usr/lib64/perl5/Win/Hivex/
usr/lib64/perl5/Win/Hivex/Regedit.pm
usr/lib64/perl5/auto/
usr/lib64/perl5/auto/Win/
usr/lib64/perl5/auto/Win/Hivex/
usr/lib64/perl5/auto/Win/Hivex/Hivex.so
usr/lib64/pkgconfig/
usr/lib64/pkgconfig/hivex.pc

[...]

However, this cannot be requested from the package manager, its 
essentially a manual task.




More information about the Libguestfs mailing list