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.