You are not logged in.
exit the process with ctrl+c? i know some files would be left on the system because i did slocate for files with the package name so how do i go about removing all the files? Is there any other easier way than pouring over the logs?
Last edited by unregistered (2008-05-16 12:28:33)
Offline
If it's one of the last operations you did, you can simply do this to check what was downloaded:
cat /var/log/pacman.log | tailIf you need more than 10 lines, you can add more to tail. For 20 lines:
cat /var/log/pacman.log | tail -n 20Last edited by skottish (2008-05-16 12:37:23)
Offline
If you know exactly the package name for which you stopped the installation you can list all the files contained in a package by either :
- pacman -Qlp /var/cache/pacman/pkg/mypackage-1.0-1.pkg.tar.gz
- going to Archlinux website package search, search for your package and use the View File List feature
Then you look for those files on your filesystem and manually remove them.
I am sure someone will have fun giving you a few bash lines to do this automatically, something like :
echo "Files to be removed :"
for file in `pacman -Qlp /var/cache/pacman/pkg/mypackage-1.0-1.pkg.tar.gz`;
do
if [ -f "$file" ]
then
echo "$file"
fi
doneDO NOT TRY THIS ! I have not tested it yet, and it is surely wrong. But the idea is there.
Also you should check if the package do something at pre/post install/uninstall in the .install file in the package and act as a consequence (re/undo what is done in this script).
Mandrake (2001) -> Debian (2002) -> Nasgaia (2003) -> LFS (2004) -> FreeBSD (2004) -> Gentoo (2005) -> Kubuntu (2006) -> Archlinux (2007) -> ?
Will Archlinux finally be THE distro of my dreams ? Time will say, but its on the way ![]()
Offline
For any leftovers not known by pacman (-Q) you wanna have a look at this:
http://bbs.archlinux.org/viewtopic.php?id=45939
Offline
exit the process with ctrl+c? i know some files would be left on the system because i did slocate for files with the package name so how do i go about removing all the files? Is there any other easier way than pouring over the logs?
It shouldn't leave any orphan files on the filesystem. You should just have some packages installed, but that's all..
In other words, a package installation should be an atomic operation as far as ctrl+c is concerned.
If you had simply looked at pacman output, you would have known which packages were installed.. But just look at pacman.log as already mentioned.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I don't know if someone has already said this, but you should just install the group completely and then completely remove the group. It'll make sure all files owned by those packages are removed and also be sure to get deps if you use the correct pacman options.
Offline
I don't know if someone has already said this, but you should just install the group completely and then completely remove the group. It'll make sure all files owned by those packages are removed and also be sure to get deps if you use the correct pacman options.
what if i have not done pacman -Sy or pacman -Sy package and just did pacman -S package and some files were not found on the updated repository?
Offline