You are not logged in.
Pages: 1
Hi, this is an idiot question, but google or wiki did not give the right solution.
I have (a lot) packages installed from source in my system, and i mean, not by PKG.
I want to remove them, but without using a package manager tool like pacman.
Is there a way?
OS -----> Arch Linux DE -----> KDE4
CPU ---> 2.66GHz RAM ---> 512 MB
SWAP -> 2 G / -------> 10 G
/home -> 50 G /boot ---> 64 MB
Offline
Usually the make uninstall target from the source distribution.
Offline
If the files are not known by the package manager then ultimately you will probably need to locate and remove the files 'by hand'.
Some projects define an 'uninstall' (or similar) Makefile target, so if you still have the original source directories the a simple 'make uninstall' might work for some.
For others, when you installed them what --prefix (if any) did you specify to the 'configure' script? if you didn't give any then most things default to /usr/local or possibly /opt so looking for files under those directories and then removing them would work.
Offline
one of the great purpose of a package manager is to track files and allow removal of packages !
you would never have guessed that, right?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
PKGBUILDs are your friend. If the program you want isn't in the AUR already, it is very easy to quickly write a PKGBUILD and then you can make a package with makepkg -s and install the program with pacman -U <package name>.
Here are some useful wiki pages:
http://wiki.archlinux.org/index.php/ABS … ild_System
http://wiki.archlinux.org/index.php/PKGBUILD
Last edited by VoodooSteve (2009-08-26 18:39:09)
Offline
If you don't have the original build directories to be able to try 'make uninstall' then you could
1. Write a PKGBUILD to compile the program again with the same options and package it up.
2. makepkg that PKGBUILD
3. pacman -Uf <file>.pkg.tar.gz
4. pacman -R <packgename>
This would install the application (forcefully!) so pacman would then know where the files are, then remove it. No guarantees this would work, especially if versions have changed since files coule be added or removed between versions...
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
one of the great purpose of a package manager is to track files and allow removal of packages !
you would never have guessed that, right?
Thats exactly what i wanna know. I (only for educational purposes) want to be able to remove packages that ive installed from source WITHOUT using a package manager... I mean, how can i track the files?
OS -----> Arch Linux DE -----> KDE4
CPU ---> 2.66GHz RAM ---> 512 MB
SWAP -> 2 G / -------> 10 G
/home -> 50 G /boot ---> 64 MB
Offline
shining wrote:one of the great purpose of a package manager is to track files and allow removal of packages !
you would never have guessed that, right?Thats exactly what i wanna know. I (only for educational purposes) want to be able to remove packages that ive installed from source WITHOUT using a package manager... I mean, how can i track the files?
Manually.
Offline
If you routinely install software without PKGFILE, you may try the paco LFS packet manager from community. It is a tool which tracks software in the install process only and allows for easy removal afterwards.
As for the already present software packages there only remains hunt and delete. Otherwise I would try to find more detailed package info in the net. It also helps tracking Makefile, if you still have them.
To know or not to know ...
... the questions remain forever.
Offline
Isn't Slackware more suited to this approach? It relies on your Unix knowledge and doesn't specifically provide a package manager (although I think slackpkg may be on the install cd's now)?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I mean, how can i track the files?
With a pen and paper.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
This is why you have a package manager...
For educationaly purposes? That's like saying, for educational purposes, I decided to break my knuckles with a hammer just to see how much it hurts.
Last edited by sand_man (2009-08-27 22:52:52)
Offline
OK.. question is asked and answered, constructive comments only please.
Offline
Pages: 1