Page 1 of 1

Uninstalling preinstalled modules??

Posted: 19 Dec 2011, 14:01
by PowerInside
A pretty straightforward question.. I can't seem to find an option to uninstall the preinstalled modules from the package manager.

Uninstalling activated modules seems pretty simple by just opening the xzm package and deactivating it.. but how to do this for already installed softwares which I can't find xzm packages?! :Search:

Re: Uninstalling preinstalled modules??

Posted: 19 Dec 2011, 15:49
by Ahau
Welcome, PowerInside!

Like all things linux, there is more than one way to accomplish this...

1) If you are using persistently saved changes, then you can uninstall packages using the 'removepkg' tool (this is a standard slackware package management tool) -- this won't modify the porteus base module containing the package -- the package will loaded at bootup and then removed from your live filesystem when your saved changes are applied.

2) To remove the selected package entirely from a base module, use the 'rempkg' tool, which is a porteus specific app that brokenman put together. Just type 'rempkg' in a console and press enter, and a GUI dialog will open up prompting you to select a module to alter, and then you can select packages to remove from that module. The module will be unpacked, modified to remove the packages, and repacked into a new module, which you'll need to put in your /porteus/modules folder to replace the stock module (I'd suggest keeping a backup of the stock module just in case something goes wrong -- it can go in /porteus/optional).

3) If you're just looking to hide an entry from showing up in the menu without messing with packages, you can add a line to the file /etc/rc.d/rc.local, which will delete the .desktop entry before kde/lxde starts up. The line would look something like 'rm /usr/share/applications/kde/kopete.desktop' (without the quotes). More on using rc.local here: http://porteus.org/info/docs/47-porteus ... local.html
If you're not saving your changes persistently, you can place your modified rc.local in your rootcopy directory (i.e. /mnt/sdXY/porteus/rootcopy/etc/rc.d/rc.local) and it will be applied to your system, even in always fresh mode.

Re: Uninstalling preinstalled modules??

Posted: 19 Dec 2011, 15:51
by Hamza
Hello,

What do you want to remove ?

Re: Uninstalling preinstalled modules??

Posted: 21 Dec 2011, 16:50
by brokenman
+1 Ahau ... Ahau for president !!

Re: Uninstalling preinstalled modules??

Posted: 06 Jun 2016, 21:03
by mediocre
Hi,

I could not find rempkg command in Porteus 3.2. So I come up with the following solution.

There are log files for each installed package in the directory /var/log/packages. In these log files, you can see the list of files installed. You can write a simple bash script to delete each file after the line "FILE LIST:".

Re: Uninstalling preinstalled modules??

Posted: 06 Jun 2016, 21:50
by Bogomips
Just one thing to remember. Before removing a package, have to ensure no other package is dependent upon this package. 8)

Re: Uninstalling preinstalled modules??

Posted: 06 Jun 2016, 23:36
by brokenman
You can use slackware tools to remove a package.

Code: Select all

xzm2dir /path/to/001-core.xzm /tmp/unpacked
ROOT=/tmp/unpacked removepkg dcron
dir2xzm /tmp/unpacked /tmp/001-core.xzm

Re: Uninstalling preinstalled modules??

Posted: 08 Jun 2016, 00:17
by wread
In my system the command is 'removepkg' not 'rempkg' :%)

Re: Uninstalling preinstalled modules??

Posted: 08 Jun 2016, 01:18
by brokenman
rempkg was a script in v3.1 to removepkg a package from a module. It utilized removepkg as above.

Re: Uninstalling preinstalled modules??

Posted: 15 Jun 2016, 08:14
by robert123
Thank you for this thread. As a newcomer it was most helpful when uninstalling pre-installed packages.