Uninstalling preinstalled modules??

Post here if you are a new Porteus member and you're looking for some help.
PowerInside
Ronin
Ronin
Posts: 1
Joined: 19 Dec 2011, 13:50
Location: Calicut

Uninstalling preinstalled modules??

Post#1 by PowerInside » 19 Dec 2011, 14:01

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:

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Uninstalling preinstalled modules??

Post#2 by Ahau » 19 Dec 2011, 15:49

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.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Uninstalling preinstalled modules??

Post#3 by Hamza » 19 Dec 2011, 15:51

Hello,

What do you want to remove ?
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Uninstalling preinstalled modules??

Post#4 by brokenman » 21 Dec 2011, 16:50

+1 Ahau ... Ahau for president !!
How do i become super user?
Wear your underpants on the outside and put on a cape.

mediocre
Ronin
Ronin
Posts: 2
Joined: 05 Jun 2016, 19:44
Distribution: Porteus
Location: Germany

Re: Uninstalling preinstalled modules??

Post#5 by mediocre » 06 Jun 2016, 21:03

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:".

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Uninstalling preinstalled modules??

Post#6 by Bogomips » 06 Jun 2016, 21:50

Just one thing to remember. Before removing a package, have to ensure no other package is dependent upon this package. 8)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Uninstalling preinstalled modules??

Post#7 by brokenman » 06 Jun 2016, 23:36

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Uninstalling preinstalled modules??

Post#8 by wread » 08 Jun 2016, 00:17

In my system the command is 'removepkg' not 'rempkg' :%)
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Uninstalling preinstalled modules??

Post#9 by brokenman » 08 Jun 2016, 01:18

rempkg was a script in v3.1 to removepkg a package from a module. It utilized removepkg as above.
How do i become super user?
Wear your underpants on the outside and put on a cape.

robert123
Ronin
Ronin
Posts: 1
Joined: 14 Jun 2016, 10:09
Distribution: porteus
Location: Pacific

Re: Uninstalling preinstalled modules??

Post#10 by robert123 » 15 Jun 2016, 08:14

Thank you for this thread. As a newcomer it was most helpful when uninstalling pre-installed packages.

Post Reply