Uninstalling preinstalled modules??
-
- Ronin
- Posts: 1
- Joined: 19 Dec 2011, 13:50
- Location: Calicut
Uninstalling preinstalled modules??
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?!
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?!
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Uninstalling preinstalled modules??
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.
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!
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Uninstalling preinstalled modules??
+1 Ahau ... Ahau for president !!
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
Re: Uninstalling preinstalled modules??
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:".
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:".
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Uninstalling preinstalled modules??
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
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Uninstalling preinstalled modules??
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.
Wear your underpants on the outside and put on a cape.
- wread
- 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??
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!
The Porteus Community never sleeps!
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Uninstalling preinstalled modules??
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.
Wear your underpants on the outside and put on a cape.
Re: Uninstalling preinstalled modules??
Thank you for this thread. As a newcomer it was most helpful when uninstalling pre-installed packages.