You are not logged in.

#1 2012-11-26 18:50:27

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Collection of pacman- and package-related scripts.

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2013-02-05 23:29:49

deepsoul
Member
From: Earth
Registered: 2012-12-23
Posts: 67
Website

Re: Collection of pacman- and package-related scripts.

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

#3 2013-02-06 11:49:59

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Collection of pacman- and package-related scripts.

I'm glad someone finds them useful. big_smile
Thanks for the feedback!


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2013-02-06 12:04:13

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,357
Website

Re: Collection of pacman- and package-related scripts.

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.

Offline

#5 2013-02-06 12:10:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Collection of pacman- and package-related scripts.

Allan wrote:
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. wink

But yeah, when I posted this thread, I didn't have that in mind. tongue

Last edited by Xyne (2013-02-06 12:20:35)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2013-02-06 12:28:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,357
Website

Re: Collection of pacman- and package-related scripts.

I took a look to see what we could pilfer for pacman.  tongue

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

#7 2013-02-06 12:41:53

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Collection of pacman- and package-related scripts.

Pilfer away. smile

Allan wrote:

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2013-02-06 12:50:23

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,357
Website

Re: Collection of pacman- and package-related scripts.

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... big_smile

Offline

#9 2013-10-21 23:50:17

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Collection of pacman- and package-related scripts.

The collection now includes a script names "pkg-backup" for saving modified copies of package "backup" files. Inspired by this thread.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2013-11-10 21:51:10

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Collection of pacman- and package-related scripts.

I have created a package for these scripts. Check the OP for the current link.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2014-12-25 22:46:05

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Collection of pacman- and package-related scripts.

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB