> I have a slax box, but I don't know its version. Which command or file can be used?
> I have a slax box, but I don't know its version. Which command or file can be used?
Easy :)
root@slax:~# cat /etc/slax-version Slax 6.0.7 root@slax:~# cat /etc/slackware-version Slackware 12.1.0 root@slax:~#
You can get slax version plus Slackware version it is based on! :)
documented on: 2008-05-21, tonio
> Where can I find the installed_package list for Slax6 RC3?
if you want ALL packages in slax, type
ls /var/log/packages
if you want the packages in a module, ie. 001-core.lzm, type
ls /mnt/live/memory/images/001-core.lzm/var/log/packages
All modules are mounted in /mnt/live/memory/images/name-of-module.lzm
documented on: May 11, 2007, Quax
To get package lists for each individual module:
ls -1 /mnt/live/memory/images/*.lzm/var/log/packages | sed 's|/mnt/live/memory/images/||; s|/var/log/packages||;'
To post it into slax/wolvix forum:
cat slax.pkg.lst | sed '/:$/{ s/^/<b>/; s|$|</b>\n|; }'
xpt
You can also extract the content of a module by doing lzm2dir which works great. You can even alter the files in that dir and then use dir2lzm to repack it and then enjoy your new fine tuned module!
documented on: May 11, 2007, turner
> Where can I find the installed_package list for Slax6 RC3?
How to obtain file list from a .lzm file?
use lzm2dir, and then have a look at /var/packages
documented on: May 15, 2007, mamez
For a used lzm, e. g. 001-core.lzm you can use
ls /mnt/live/memory/images/001-core.lzm/var/log/packages/
documented on: May 15, 2007, flux
> Thanks for all the replies, instead > Any way to loop mount a .lzm file?
You can try:
mount -o loop -t squashfs your.lzm your-mount-point
documented on: May 27, 2007, flux
If you just need to list the content of a LZM file, you don't have to extract it and you don't have to unmount it. Just use
unsquashfs -ls module.lzm
(-ls is a lowercase -LS).
This way, you don't even need squashfs-lzma support in kernel.
documented on: May 28, 2007, Tomas
> How can I get the package list for popcorn? Is there an command to do each > "*.mo" package?
You can get a list of installed packages from /var/log/packages directory.
try the following
Mount the module: mkdir -p /mnt/module mount -t squashfs -o loop <module> /mnt/module
Then you can inspect the whole content of the module doing:
cd /mnt/module ls...
or better yet using Midnight Commander.
I think each module should have a package list in /var/log/packages.
When done unmount the module the normal way.
documented on: Jun 24, 2005, zariweb