You are not logged in.
Topic says it all
I'd like to see which packages I have installed that I built via a recompile using ABS.
Last edited by graysky (2011-12-04 12:49:44)
Offline
You should have added them to a group e.g. mypkgs.
Is there a change you've installed them all explicitly and not as a dep for another package?
Offline
I use this ugly one-liner:
comm -23 <(pacman -Qi | grep -P '^(Name\s*|Packager\s*:\s*xduugu$)' | grep -B1 '^Packager[[:space:]]' \
| grep ^Name | sed -r 's/^Name\s*:\s*(\S+)\s*$/\1/' | sort) <(pacman -Qmq 2>/dev/null | sort)The "xduugu" part has to be replaced with your PACKAGER variable from /etc/makepkg.conf (or you source that file and use the PACKAGER variable directly).
Offline
Ah, if you've used the PACKAGER variable, then try
expac "%n %p" | grep "$PACKAGER" | column -tEdit: Forgot quotes around $PACKAGER.
Last edited by karol (2011-12-04 12:40:31)
Offline
@xduugu - nice idea. It give me a null set though?
$ grep graysky /etc/makepkg.conf
PACKAGER="graysky <graysky@archlinux.us>"
$ comm -23 <(pacman -Qi | grep -P '^(Name\s*|Packager\s*:\s*graysky$)' | grep -B1 '^Packager[[:space:]]' \
| grep ^Name | sed -r 's/^Name\s*:\s*(\S+)\s*$/\1/' | sort) <(pacman -Qmq 2>/dev/null | sort)@karol - which package contains expac?
Last edited by graysky (2011-12-04 12:43:23)
Offline
https://wiki.archlinux.org/index.php/FA … is_X_in.3F ;P
expac from [community]
I think the packages from AUR will be shown this way too.
Last edited by karol (2011-12-04 12:46:04)
Offline
Thank you karol and xduugu for the suggestions. Using expac as you suggested and grepping my nick worked like a charm!
Last edited by graysky (2011-12-04 12:51:30)
Offline
I added this bit of wisdom to the wiki in hopes that others find it of use.
https://wiki.archlinux.org/index.php/Ar … kepkg.conf
Last edited by graysky (2011-12-04 13:00:32)
Offline
I added this bit of wisdom to the wiki in hopes that others find it of use.
What is the last grep for?
expac "%n %p" | grep "$PACKAGER" | column -t | grep mynameOffline
@karol - to see only those packages built by "myname" ... without that all packagers are listed. Here is goal is to identify the subset of customized ones. Right, no?
Last edited by graysky (2011-12-04 13:06:03)
Offline
If
$ grep myname /etc/makepkg.conf
PACKAGER="myname <myemail@myserver.com>$ expac "%n %p" | grep "$PACKAGER" | column -t | grep mynamewill show
binutils myname <myemail@myserver.com>
gcc myname <myemail@myserver.com>
gcc-libs myname <myemail@myserver.com>
glibc myname <myemail@myserver.com>
tar myname <myemail@myserver.com>and not
binutils myname
gcc myname
gcc-libs myname
glibc myname
tar mynameYou either need to use cut or awk instead of that last grep or set PACKAGER="myname".
Offline
@xduugu - nice idea. It give me a null set though?
$ grep graysky /etc/makepkg.conf PACKAGER="graysky <graysky@archlinux.us>"
@gravsky
For me, PACKAGER is just "xduugu", so you also have to include your email address, when you replace it. This should work:
. /etc/makepkg.conf
comm -23 <(pacman -Qi | grep -P "^(Name\s*|Packager\s*:\s*$PACKAGER$)" | grep -B1 '^Packager[[:space:]]' \
| grep ^Name | sed -r 's/^Name\s*:\s*(\S+)\s*$/\1/' | sort) <(pacman -Qmq 2>/dev/null | sort)https://wiki.archlinux.org/index.php/FA … is_X_in.3F ;P
expac from [community]I think the packages from AUR will be shown this way too.
Thanks for the 'expac' hint. My one-line is much more readable now (it also filters non-repo packages like the AUR). ![]()
. /etc/makepkg.conf; grep -xvFf <(pacman -Qqm) <(expac "%n\t%p" | grep "$PACKAGER" | cut -f1)Last edited by xduugu (2011-12-04 13:11:21)
Offline
I meant to use it like this
[karol@black ~]$ grep ^PACKAGER /etc/makepkg.conf
PACKAGER="karol"
[karol@black ~]$ expac "%n %p" | grep "karol" | column -t
vtclock karolOffline
::head smack::
You're right karol! Edited the wiki.
Offline
[karol@black ~]$ echo "$PACKAGER"
karol
[karol@black ~]$ expac "%n %p" | grep "$PACKAGER" | column -t
vtclock karolIt works for me either way.
Offline
@karol
I know, but I don't want to see AUR packages. ![]()
edit: Oops... I guess you meant the wiki entry.
Last edited by xduugu (2011-12-04 13:17:50)
Offline
@karol
I know, but I don't want to see AUR packages.
I knew I should have added '@graysky' to my post ;P
edit: Oops... I guess you meant the wiki entry.
Yup. You should add your script to the wiki too.
Last edited by karol (2011-12-04 13:36:39)
Offline
I placed both scripts in the wiki. Thanks again, all.
Offline
I'm not 100% about this but even if you haven't set the PACKAGER variable you can easily identify the packages you've built: the PACKAGER var seems to be set to 'Unknown Packager' unless overridden by what's in makepkg.conf..
Offline
@karol - Cool. If you can verify this, please edit the wiki.
Offline
karol is right, but there are some false positives. Currently, ~100 packages in the repositories were packaged by "Unknown Packager".
Offline
karol is right, but there are some false positives. Currently, ~100 packages in the repositories were packaged by "Unknown Packager".
So I remembered right, seems that some packages are provided by Santa Claus or some other Good Samaritan ;P
Offline