You are not logged in.
I have uploaded a small collection of simple package-related scripts that has been growing on my system. I have posted (variations of) most of them around the forum in response to different threads.
Some examples:
* detect incomplete packages (i.e. packages missing installed files)
* recursively list unpackages files in a given directory (e.g. can be used to find leftover packages in /usr)
* extract original version of file from package cache (e.g. to see what a configuration file was before you butchered it)
* clean custom package cache while keeping a certain number of versions for each package
etc.
You can get them here: http://xyne.archlinux.ca/scripts/pkg/. If there is enough interest I will probably package these.
There is now a package. You can find repo and AUR links here: http://xyne.archlinux.ca/projects/pkg_scripts/
Last edited by Xyne (2013-11-10 21:46:46)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thank you for posting this! I apparently wasn't around when you posted these tools previously. I especially like pkg-list_dep_dates for viewing dependency trees (most other distributions have such a tool, somtimes as a package manager feature) and pkg-extract_original (to view unchanged config files, as you say). pkg-list_unpackaged_files is also helpful for an overview of local installs / modifications.
Officer, I had to drive home - I was way too drunk to teleport!
Offline
I'm glad someone finds them useful.
Thanks for the feedback!
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
* detect incomplete packages (i.e. packages missing installed files)
Um - you do know about "pacman -Qk" (or -Qqk for less noise).
Note, in the upcoming pacman-4.1 pacman will confirm file size, permissions, ownership, creation times, symlink targets. Checksum checking needs additional libarchive support.
Offline
Xyne wrote:* detect incomplete packages (i.e. packages missing installed files)
Um - you do know about "pacman -Qk" (or -Qqk for less noise).
Note, in the upcoming pacman-4.1 pacman will confirm file size, permissions, ownership, creation times, symlink targets. Checksum checking needs additional libarchive support.
As I said, these are scripts that have collected over time. I don't bother to delete them whenever Pacman catches up.
But yeah, when I posted this thread, I didn't have that in mind.
Last edited by Xyne (2013-02-06 12:20:35)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I took a look to see what we could pilfer for pacman.
I quite like the package groups checking script - not sure that is right for pacman (although group handling does need improved) but something like that would be quite useful for pacman-contrib.
FYI, pacman-4.1 also puts makedepends and checkdepends into the repos, so your topological rebuild script could get a boost.
Offline
Pilfer away.
FYI, pacman-4.1 also puts makedepends and checkdepends into the repos, so your topological rebuild script could get a boost.
You lost me here (I'm ridiculously tired, bear with me). Do you mean that it somehow uses local repos for building?
Btw, have you seen makedep?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
To rebuild packages in order, you need to know the makedepends (and I suppose checkdepends) as just using the depends is not enough in some cases. We add that extra information into the repos with repo-add in pacman-4.1 so the order can take those into account too.
I had seen makedep - it sort of achieves what a submitted patchset did for pacman but that never got revised based on comments so only extra informational stuff for optdepends is added in pacman-4.1. If only someone paid me to implement everything I want to in pacman...
Offline
The collection now includes a script names "pkg-backup" for saving modified copies of package "backup" files. Inspired by this thread.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I have created a package for these scripts. Check the OP for the current link.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
added pkg-simple_search and pkg-busybox_recovery
See the announcement for details.
I would appreciate comments on pkg-busybox_recovery. Suggestions for preserving existing configuration files or running as root without suid would be appreciated.
Last edited by Xyne (2014-12-25 22:50:49)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline