[HOWTO] ROOT=/path/ removepkg package

Post tutorials, HOWTO's and other useful resources here.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#1 by Rava » 22 Dec 2022, 23:47

Since some of the posts have been more about module extration, removepkg and such, I removed these from the original thread about fulalas Porteus review into here.
It started with parts of my own review of fulalas review:

Porteus 5 review (Post by Rava #92249)

Important:
If you do not exactly know what you are doing you can break your system, e.g. when you remove important parts of a core module and replace these with incompatible parts.
Please only do so when you have some knowledge about a Linux system. This is not recommended for new users fresh from Windows as their first attempt in creating an own module.



Only the parts relevant to ROOT=/path/ removepkg package I copy in here:
_____________________________________________________
Rava wrote:
22 Dec 2022, 01:50
When asked, I would even recommend the user to patch her/his 002-xtra.xzm to make a 002-xtra_sans_celluloid.xzm out of that.
(And the user learns about the ROOT= hack in combination with removepkg, e.g.

Code: Select all

ROOT=/path/to/extracted/002-xtra_sans_celluloid/ removepkg celluloid
Not that it makes the module much smaller, but removing an application one really really dislikes entirely is something very… satisfying calming. :D )
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#2 by Rava » 22 Dec 2022, 23:53

Sadly, I cannot just move Testuser's post Porteus 5 review (Post by Testuser #92263) in here since it is older than my initial post above and the order of the posts would be messed up, therefore I quote his (her?) post instead:
Testuser wrote:
22 Dec 2022, 18:18
I also never liked celluloid.
Rava wrote:
22 Dec 2022, 01:50
Not that it makes the module much smaller, but removing an application one really really dislikes entirely is something very… satisfying calming. :D )
I tried ROOT=/path/to/extracted/002-xtra_sans_celluloid/ removepkg celluloid, but modules does not got smaller and only less files were removed :no:

Also, can we make vlc player as default in Porteus becoz, when I tested vlc uses less resources compared to mpv for same video file. :)

Has anyone tested which video player uses least CPU? :%)
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#3 by Rava » 22 Dec 2022, 23:57

This is my longer reply with the actual [HOWTO] ROOT=/path/ removepkg package
_______________________________________________________
Testuser wrote:
22 Dec 2022, 18:18
I tried ROOT=/path/to/extracted/002-xtra_sans_celluloid/ removepkg celluloid, but modules does not got smaller and only less files were removed
The above line is just one part of a multi-step-process.

Let me create a "002-xtra_sans_celluloid.xzm" module out of the most recent 002-xtra.xzm so that you can see all the steps:

First extract the original, either use the RAM file system - or when that s not large enough to hold the extracted module and the creation of the new altered one, use a hard disk partition with an ext[234] partition instead.

1. Step: Creating the target directory, Extraction of the original module:
I copied the downloaded via /opt/porteus-scripts/update-porteus module "002-xtra.xzm" into its folder "/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212/" :

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# ls -o 002-xtra.xzm
-rw-r--r-- 1 root 18399232 2022-12-12 06:45 002-xtra.xzm
I created the target directory:

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# mkdir 002-xtra_sans_celluloid
and extracted the original module:

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# xzm2dir 002-xtra.xzm 002-xtra_sans_celluloid/
Parallel unsquashfs: Using 8 processors
241 inodes (472 blocks) to write

[===============================================================-] 472/472 100%

created 187 files
created 78 directories
created 54 symlinks
created 0 devices
created 0 fifos
created 0 sockets
2nd step: the ROOT=/path/ removepkg celluloid :

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# ROOT=002-xtra_sans_celluloid removepkg celluloid
Removing package: celluloid-0.21-x86_64-3_ncm
Removing files:
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/man/man1/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/bg/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/bg/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ca/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ca/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/cs/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/cs/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/da/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/da/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/de/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/de/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/eo/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/eo/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/es/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/es/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/eu/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/eu/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/fa/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/fa/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/fi/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/fi/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/fr/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/fr/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/hr/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/hr/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/hu/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/hu/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/is/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/is/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/it/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/it/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ja/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ja/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/nl/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/nl/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/pl/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/pl/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/pt_BR/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/pt_BR/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ro/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ro/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ru/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/ru/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sk/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sk/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sl/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sl/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sr/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sr/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sv/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/sv/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/tr/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/tr/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/uk/ was found in another package. Skipping.
WARNING: None2nd step: the ROOT=/path/ removepkg celluloid xistent 002-xtra_sans_celluloid/usr/share/locale/uk/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/zh_CN/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/zh_CN/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/zh_TW/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/locale/zh_TW/LC_MESSAGES/ was found in another package. Skipping.
WARNING: Nonexistent 002-xtra_sans_celluloid/usr/share/metainfo/ was found in another package. Skipping.
WARNING: 002-xtra_sans_celluloid/usr/bin/celluloid changed after package installation.
  --> Deleting 002-xtra_sans_celluloid/usr/bin/celluloid
  --> 002-xtra_sans_celluloid/usr/man/man1/celluloid.1 no longer exists. Skipping.
WARNING: 002-xtra_sans_celluloid/usr/share/applications/io.github.celluloid_player.Celluloid.desktop changed after package installation.
  --> Deleting 002-xtra_sans_celluloid/usr/share/applications/io.github.celluloid_player.Celluloid.desktop
  --> 002-xtra_sans_celluloid/usr/share/dbus-1/ no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/dbus-1/services/ no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/dbus-1/services/io.github.celluloid_player.Celluloid.service no longer exists. Skipping.
  --> Deleting 002-xtra_sans_celluloid/usr/share/glib-2.0/schemas/io.github.GnomeMpv.gschema.xml
  --> Deleting 002-xtra_sans_celluloid/usr/share/glib-2.0/schemas/io.github.celluloid_player.Celluloid.gschema.xml
  --> Deleting 002-xtra_sans_celluloid/usr/share/icons/hicolor/scalable/apps/io.github.celluloid_player.Celluloid.svg
  --> Deleting 002-xtra_sans_celluloid/usr/share/icons/hicolor/symbolic/apps/io.github.celluloid_player.Celluloid-symbolic.svg
  --> 002-xtra_sans_celluloid/usr/share/locale/bg/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/ca/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/cs/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/da/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/de/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/eo/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/es/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/eu/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/fa/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/fi/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/fr/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/hr/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/hu/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/is/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/it/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/ja/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/nl/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/pl/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/pt_BR/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/pt_PT/ no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/pt_PT/LC_MESSAGES/ no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/pt_PT/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/ro/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/ru/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sk/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sl/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sr/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sr@latin/ no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sr@latin/LC_MESSAGES/ no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sr@latin/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/sv/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/tr/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/uk/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/zh_CN/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/locale/zh_TW/LC_MESSAGES/celluloid.mo no longer exists. Skipping.
  --> 002-xtra_sans_celluloid/usr/share/metainfo/io.github.celluloid_player.Celluloid.appdata.xml no longer exists. Skipping.
WARNING: Unique directory 002-xtra_sans_celluloid/usr/share/glib-2.0/schemas/ contains new files
WARNING: Unique directory 002-xtra_sans_celluloid/usr/share/glib-2.0/ contains new files
All these "[…] no longer exists. Skipping." are because the file is part of the package info but the file itself was stripped out of the module.
And what is no longer there cannot be removed.
3rd step, manual check if files remain
I then add an extra line checking if there are still files there not removed. First i list these like so, but Cave! - I moved into the target directory first, so that the command's path of "." means something else like with the commands just quoted above:

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# cd 002-xtra_sans_celluloid/
root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212/002-xtra_sans_celluloid# find . -name '*celluloid*' -exec ls -lo {} \;
lrwxrwxrwx 1 root 79 2022-12-11 07:13 ./usr/share/icons/hicolor/128x128/apps/io.github.celluloid_player.Celluloid.svg -> /usr/share/icons/hicolor/scalable/apps/io.github.celluloid_player.Celluloid.svg
-rw-r--r-- 1 root 4588 2022-12-11 07:13 ./var/log/pkgtools/removed_packages/celluloid-0.21-x86_64-3_ncm
As you can see, two files called '*celluloid*' remained, and the following command will remove these:

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212/002-xtra_sans_celluloid# find . -name '*celluloid*' -exec rm -vf {} \;
removed './usr/share/icons/hicolor/128x128/apps/io.github.celluloid_player.Celluloid.svg'
removed './var/log/pkgtools/removed_packages/celluloid-0.21-x86_64-3_ncm'
Now it's time creating the new module:
4th step: creation of new module

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212/002-xtra_sans_celluloid# cd  ..
root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# dir2xzm 002-xtra_sans_celluloid 002-xtra_sans_celluloid.xzm
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on 002-xtra_sans_celluloid.xzm, block size 262144.
[===============================================================\] 410/410 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments,
	compressed xattrs, compressed ids
	duplicates are removed
Filesystem size 17873.72 Kbytes (17.45 Mbytes)
	27.64% of uncompressed filesystem size (64675.38 Kbytes)
Inode table size 3544 bytes (3.46 Kbytes)
	30.15% of uncompressed inode table size (11755 bytes)
Directory table size 3318 bytes (3.24 Kbytes)
	43.27% of uncompressed directory table size (7669 bytes)
Number of duplicate files found 0
Number of inodes 316
Number of files 180
Number of fragments 19
Number of symbolic links 56
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 80
Number of ids (unique uids + gids) 3
Number of uids 2
	root (0)
	guest (1000)
Number of gids 2
	root (0)
	users (100)
And we now can compare the file sizes:

Code: Select all

root@porteus:/mnt/sdb4/bin/linux/porteus/5.0/x86-64/updates_core/20221212# ls -o 002-xtra*.xzm
-rw-r--r-- 1 root 18399232 2022-12-12 06:45 002-xtra.xzm
-rw-r--r-- 1 root 18305024 2022-12-21 21:04 002-xtra_sans_celluloid.xzm
Like I wrote, removing celluloid is not really changing the size of the module that much.
The original 002-xtra.xzm is 17.55 MB and the newly created 002-xtra_sans_celluloid.xzm is 17.46 MB - it's more about removing an application that annoys me and that I do not want at all than anything else.

The above is the elaborate explanation how to patch a module. You can do that with any kind of program you want removed (e.g. the image viewer of your 003-WHATEVER DE module. And then you can either use

Code: Select all

ROOT=003-WHATEVER/ installpkg WHATEVER-PACKAGE.txz 
if WHATEVER-PACKAGE.txz is found as that given path, and "003-WHATEVER/" is also found in the current directory and is where your first extracted the original "003-WHATEVER.xzm" into.
Or alternatively, when you WHATEVER-PACKAGE.xzm as module you might use xzm2dir.
But cave! on that, older versions of xzm2dir always respected the given target directory, but now there are also versions of xzm2dir that always use "./module-name/" as target directory when you extract the module named module-name.xzm
So if that would be the case, you manually have to move the extracted files from ./module-name/ into e.g. ./003-WHATEVER/ when ./003-WHATEVER/ is where you extracted the module you want to pimp.

And then at the end do a

Code: Select all

dir2xzm 003-WHATEVER/ 003-WHATEVER.xzm
I hope my explanation is easy enough to understand. :)
________________________________________________________

Added in 12 minutes 56 seconds:
Testuser wrote:
22 Dec 2022, 18:18
Has anyone tested which video player uses least CPU? :%)
The issue is:
there seems to be huge differences when it comes to different users hardwares.

some say mpv is better for them than ffplay.
With many dated hardware PCs like all of mine are, and other users report the same, ffplay is always quicker than mpv.

And then there is the pimping of your system using these files
(size filename)

Code: Select all

  49152   vid.stab-20201110_f9166e9-x86_64-1.xzm
 753664   dav1d-1.0-x86_64.xzm
8024064   ffmpeg-4.4.1-x86_64-2.xzm
I have not yet tried setting this up.
The ffmpeg that is part of my standard Porteus 5.0 is also "ffmpeg-4.4.1" and I am not sure if the binary from the module "ffmpeg-4.4.1-x86_64-2.xzm" differs, e.g. because optimized compiler options have been used during creation?

Code: Select all

guest@porteus:/tmp$ ffmpeg -L 2>&1 |head -n 2
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (GCC)
Added in 11 minutes 6 seconds:
I tried finding the thread where the 3 modules got mentioned and where you should find the URL for downloading these via https://duckduckgo.com/?q=site%3Aforum. ... %22&ia=web but only got a nope as result:
No results found for site:forum.porteus.org "dav1d-1.0".

Suggestions:

Make sure all words are spelled correctly.
Try different keywords.
Try more general keywords.
Try fewer keywords.
:(
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#4 by Rava » 23 Dec 2022, 00:32

Rava wrote:
22 Dec 2022, 23:57
The ffmpeg that is part of my standard Porteus 5.0 is also "ffmpeg-4.4.1" and I am not sure if the binary from the module "ffmpeg-4.4.1-x86_64-2.xzm" differs, e.g. because optimized compiler options have been used during creation?
I extracted the module and compared the md5sums of the binary of the generic Porteus 5 (x86-64) system and the one from the"ffmpeg-4.4.1-x86_64-2.xzm" module and they do indeed differ:

Extraction:

Code: Select all

root@porteus:/Porteus_modules# mkdir ffmpeg-4.4.1-x86_64-2
root@porteus:/Porteus_modules# xzm2dir ffmpeg-4.4.1-x86_64-2.xzm ffmpeg-4.4.1-x86_64-2
Parallel unsquashfs: Using 8 processors
40 inodes (123 blocks) to write

[===============================================================|] 123/123 100%

created 20 files
created 12 directories
created 20 symlinks
created 0 devices
created 0 fifos
created 0 sockets
md5sums:

Code: Select all

root@porteus:/Porteus_modules# md5sum /usr/bin/ffmpeg ffmpeg-4.4.1-x86_64-2/usr/bin/ffmpeg 
e890606a1838f087265f011f52fd4b82  /usr/bin/ffmpeg
bb773a37eb332b86caa1cdc42d08dc02  ffmpeg-4.4.1-x86_64-2/usr/bin/ffmpeg
sizes:

Code: Select all

root@porteus:/Porteus_modules# ls -o /usr/bin/ffmpeg ffmpeg-4.4.1-x86_64-2/usr/bin/ffmpeg 
-rwxr-xr-x 1 root 271400 2022-06-30 09:13 /usr/bin/ffmpeg
-rwxr-xr-x 1 root 271232 2022-12-14 22:56 ffmpeg-4.4.1-x86_64-2/usr/bin/ffmpeg
Cheers!
Yours Rava

Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

[HOWTO] ROOT=/path/ removepkg package

Post#5 by Testuser » 23 Dec 2022, 17:01

Thanks Rava for explaining adding and removing package from xzm package. :good:

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#6 by Rava » 23 Dec 2022, 18:51

Testuser wrote:
23 Dec 2022, 17:01
Thanks Rava for explaining adding and removing package from xzm package. :good:
You are very welcome.

When one did create a module out of an alien package (e.g. from an Ubuntu or Suse Linux one) you can also add these, but you have to make sure xzm2dir used the target directory you told it to instead of creating a folder by the name of modulename/ (sans the .xzm ending, when you extracted a module named modulename.xzm ) like some versions of xzm2dir unfortunately do - like I wrote above, then you manually have to move the files into e.g. 003-WHATEVER/ when that is the base folder where you put everything in for adding and removing package via installpkg (adding) or removepkg (removing). :)
Cheers!
Yours Rava

Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

[HOWTO] ROOT=/path/ removepkg package

Post#7 by Testuser » 24 Dec 2022, 16:09

Rava wrote:
23 Dec 2022, 18:51

When one did create a module out of an alien package (e.g. from an Ubuntu or Suse Linux one) you can also add these, but you have to make sure xzm2dir used the target directory you told it to instead of creating a folder by the name of modulename/ (sans the .xzm ending, when you extracted a module named modulename.xzm ) like some versions of xzm2dir unfortunately do - like I wrote above, then you manually have to move the files into e.g. 003-WHATEVER/ when that is the base folder where you put everything in for adding and removing package via installpkg (adding) or removepkg (removing). :)
This part made me little confused, I always use file Context Menu to extract or create XZM files (hope that is the same as xzm2dir or dir2xzm). :no:

beny
Full of knowledge
Full of knowledge
Posts: 2092
Joined: 02 Jan 2011, 11:33
Location: italy

[HOWTO] ROOT=/path/ removepkg package

Post#8 by beny » 24 Dec 2022, 18:27

i don't use the dir2xzm anymore,rava tell you if you have to make a package from a directory do not left the xzm suffix,but like i have tell you, you can mksquashfs the directory like this /root/thunar-4.18.1-1-x86_64 /root/thunar-4.18.1-1-x86_64.xzm
and you have your package ready to the modules and also when you have to work with the txz packages with the ROOT=
you can use upgradepkg --install-new "name of the package" or name of directories /*.t?z well you know how you want to work...

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#9 by Rava » 24 Dec 2022, 18:30

Testuser wrote:
24 Dec 2022, 16:09
This part made me little confused, I always use file Context Menu to extract or create XZM files (hope that is the same as xzm2dir or dir2xzm).
It is.

The advantage of e.g. xzm2dir and dir2xzm: you can create a script that does more things automatically, one step after he other.

● Like creating the target folder.
● extracting some specific module into that folder.
● tweak the folder, removing outdated or unwanted stuff via ROOT=/path/to/folder removepkg packageA1 packageA2 packageAN
● add either add up to date or different packages, or add missing dependencies via ROOT=/path/to/folder installpkg packageB1 packageB2 packageBN
● and do the final dir2xzm /path/to/folder folder.xzm


Sure, writing the script would first take a while, but when you repeat the steps later it only takes a little tweaking - or probably even no tweaking at all - and you updated a certain newest version of a module how you want it to be - or with missing dependencies, how it needs to be.
beny wrote:
24 Dec 2022, 18:27
you can mksquashfs the directory like this /root/thunar-4.18.1-1-x86_64 /root/thunar-4.18.1-1-x86_64.xzm
beny, I think there is something missing … at least you need a command to be executed (e.g. mksquashfs being the command)
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2092
Joined: 02 Jan 2011, 11:33
Location: italy

[HOWTO] ROOT=/path/ removepkg package

Post#10 by beny » 24 Dec 2022, 18:38

yes the mksquashfs and the command unsquashfs with root account are for to work with directories or files or i have always used in this way and work with the full power -j, try,when you make a txz package from source code you have to work inside the directory with the makepkg -l y -c n ../app-version-arch-tag.tgz

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[HOWTO] ROOT=/path/ removepkg package

Post#11 by Rava » 24 Dec 2022, 19:49

beny wrote:
24 Dec 2022, 18:38
mksquashfs and the command unsquashfs with root account
you are of course correct.
The dir2xzm or xzm2dir are only wrappers who execute mksquashfs and unsquashfs, respectively.
To prove the point:

Code: Select all

guest@porteus:/opt/porteus-scripts$ grep -E "mksquashfs|unsquashfs" dir2xzm xzm2dir
dir2xzm:mksquashfs "$1" "$2" $COMP -noappend $keep
xzm2dir:unsquashfs -f -dest "$destination" "$1"
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2092
Joined: 02 Jan 2011, 11:33
Location: italy

[HOWTO] ROOT=/path/ removepkg package

Post#12 by beny » 24 Dec 2022, 21:32

And with these command you can do the task everywhere, not only in porteus like dir2xzm and other like that

Post Reply