You are not logged in.

#1 2005-08-16 12:40:26

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

qpkg - an ext. script for searching and managing packages

qpkg is Arch Linux' "query package" tool, using it, you can search for packages in all known repositories (official, TUR and PUR) and in AUR, find packages owning files on your filesystem, check the integrity of installed packages, manage the PURs in your pacman configuration and do other queries against installed or uninstalled packages. You can install packages through the PKGBUILDs directly from AUR. And you can automatically update all packages which were installed directly from AUR. It takes care of the dependencies and install/update them if needed.

NEW: The voting function for AUR is now also included too!

You'll find it on AUR:
http://aur.archlinux.org/packages.php?K=qpkg

Or directly on its homepage:
http://qpkg.berlios.de

And don't forget to vote for this script on AUR! wink

have fun.

Offline

#2 2005-08-16 14:14:58

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

Version 0.1.3 is out now with the features announced above.

Offline

#3 2005-08-18 05:40:25

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

Well, ...any suggestions and or feedback would be really fine... wink

Offline

#4 2005-08-18 07:18:49

_will
Member
Registered: 2004-07-08
Posts: 123

Re: qpkg - an ext. script for searching and managing packages

looks really cool, but i get an error

03:14:09~$ qpkg gstreamer
Searching for the packages...  

Search matches from the package names:

extra/gstreamer-0.8.10-1
    GNOME2 Multimedia Framework
    ftp://ftp.archlinux.de/pub/archlinux/extra/os/i686

Search matches from AUR:

Traceback (most recent call last):
  File "/usr/bin/qpkg", line 1158, in ?
    PLIST = [spanTag.contents[0].string for spanTag in matchingSpanTags]
IndexError: list index out of range

out of curiosity, where are the know PUR list stored/ how is it recieved
qpkg-update grabs the list from linu-stats.org?

Offline

#5 2005-08-18 12:26:03

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

Hi _will...
thanks for your feedback... wink
This is a known bug... I'm working on this... this comes from the html-code which AUR responds on some packagenames.

The "database"-files are generated every four hours and then uploaded to linux-stats.org. My home-computer generates them. I'm searching for repos and adding them to the list from which the files were generated.

Offline

#6 2005-08-20 10:24:28

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

I've just release 1.0.0
Take a look at the url below and at the last comment on this page for a complete list of features.

--> http://aur.archlinux.org/packages.php?d … s=1&ID=856

Offline

#7 2005-08-22 17:29:45

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: qpkg - an ext. script for searching and managing packages

Good job with qpkg. It is very simple and easy to use. A nice feature would be a verbose option that would allow you to see what is going on when it is downloading/compiling.

Offline

#8 2005-08-22 18:40:28

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

Thanks for your feedback. wink
I'll think about an 1.0.1 with this feature.

Offline

#9 2005-08-23 21:35:21

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: qpkg - an ext. script for searching and managing packages

Very nice work. I use it all the time now. big_smile

Offline

#10 2005-10-14 11:53:08

abhaysahai
Member
Registered: 2005-07-12
Posts: 51

Re: qpkg - an ext. script for searching and managing packages

Thank you agin -- It really helped in installing e-cvs

Abhay

Offline

#11 2005-10-14 13:12:23

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: qpkg - an ext. script for searching and managing packages

I will give it a try soon.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#12 2005-10-14 16:50:34

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qpkg - an ext. script for searching and managing packages

really nice tool smile

just 1 remark if i may - on testing qpkg on itself (for example), why the use of /tmp/qpkg, /root/qpkg.packages, /var/cache/qpkg ? instead, why not do as aurbuild and create subfolder (from existing dir) of the package-name? i dont like having those dirs in various places, i prefer having everything in my /var/abs/local where i manually build my packages...

thanks for your contribution smile

Offline

#13 2005-11-11 10:54:04

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: qpkg - an ext. script for searching and managing packages

+1 really *nice* tool

Thank you for having implemented an easy-way to clean /var/cache/pacman/src & ~/pkg :

# qpkg -s    

Calculating directory sizes and space which can be freed...

Directory-Listing:
=============================================================
Directory                 Files    Size (b)       Size (mb)     
-------------------------------------------------------------
/var/cache/pacman/src     31       83348786       79.488        
/var/cache/pacman/pkg     140      227816375      217.263       
-------------------------------------------------------------
Total used space:                  311165161      296.75        

Do you want me to start the deletion of the unused files now?
[Y/n]   

Deletion done.

~300MB recovered first time I used it, which is much more (precise as well) than I could achieve with pacman -Sc smile

Some repositories from qpkg -r list could not be found yet :

]# pacman -Sy
:: Synchronizing package databases... 
 testing                  [################] 100%       3K     2.9K/s  00:00:01
 current                  [/media/mirrors/archlinux/current/] 100%    LOCAL 
 extra                    [/media/mirrors/archlinux/extra/os] 100%    LOCAL 
 community                [################] 100%      30K    94.9K/s  00:00:00
redirection not supported

failed downloading /berkus.db.tar.gz from arch.madfire.net: HTTP/1.1 302 Found

failed to synchronize berkus
connect: Connection timed out
error: cannot connect to celti.a.la
failed to synchronize celti
failed downloading /pacman/effigies.db.tar.gz from effigies.freelinuxhost.com: HTTP/1.1 404 Not Found

failed to synchronize effigies
connect: Connection refused
error: cannot connect to phrakture.homelinux.net
failed to synchronize phrakture
error: could not open sync database: berkus

Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#14 2005-11-11 11:48:06

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

kozaki wrote:

+1 really *nice* tool

Thank you for having implemented an easy-way to clean /var/cache/pacman/src & ~/pkg :

# qpkg -s    

Calculating directory sizes and space which can be freed...

Directory-Listing:
=============================================================
Directory                 Files    Size (b)       Size (mb)     
-------------------------------------------------------------
/var/cache/pacman/src     31       83348786       79.488        
/var/cache/pacman/pkg     140      227816375      217.263       
-------------------------------------------------------------
Total used space:                  311165161      296.75        

Do you want me to start the deletion of the unused files now?
[Y/n]   

Deletion done.

~300MB recovered first time I used it, which is much more (precise as well) than I could achieve with pacman -Sc smile

Hehe, great that you like it. wink

Some repositories from qpkg -r list could not be found yet :

]# pacman -Sy
:: Synchronizing package databases... 
 testing                  [################] 100%       3K     2.9K/s  00:00:01
 current                  [/media/mirrors/archlinux/current/] 100%    LOCAL 
 extra                    [/media/mirrors/archlinux/extra/os] 100%    LOCAL 
 community                [################] 100%      30K    94.9K/s  00:00:00
redirection not supported

failed downloading /berkus.db.tar.gz from arch.madfire.net: HTTP/1.1 302 Found

failed to synchronize berkus
connect: Connection timed out
error: cannot connect to celti.a.la
failed to synchronize celti
failed downloading /pacman/effigies.db.tar.gz from effigies.freelinuxhost.com: HTTP/1.1 404 Not Found

failed to synchronize effigies
connect: Connection refused
error: cannot connect to phrakture.homelinux.net
failed to synchronize phrakture
error: could not open sync database: berkus

yeah... unfortunatly these user-repositories changes very often and some of them also are located on an homeserver under a dynamic ip.
So you have to remove the not working repositories from your qpkg-r list.

I will update these repositories soon.

Offline

#15 2005-11-11 12:33:15

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qpkg - an ext. script for searching and managing packages

i love it   big_smile

Offline

#16 2005-11-11 16:57:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: qpkg - an ext. script for searching and managing packages

dma147 wrote:

yeah... unfortunatly these user-repositories changes very often and some of them also are located on an homeserver under a dynamic ip.
So you have to remove the not working repositories from your qpkg-r list.

I will update these repositories soon.

The list on xentac.net, and all the old TURs were removed recently - the PKGBUILDs will be uploaded to the AUR when some of the TUs get time.

We discussed that in a TU meeting ages ago, and it took Xentac 3 months to do it (lazy bastard!).

As for personal repos, I am not sure if a list is maintained anymore.

Offline

#17 2005-11-12 23:19:20

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

@mambro: yes. Maybe I'll implement the automatic installation of dependencies for a next version soon...

Offline

#18 2005-12-07 20:56:40

mmccaskill
Member
From: NC
Registered: 2005-02-21
Posts: 163

Re: qpkg - an ext. script for searching and managing packages

Does this allow searching owner of files for packages not yet installed? Like

pacman -Qo <file>

but searching for not-yet installed packages.

Offline

#19 2005-12-27 12:02:47

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qpkg - an ext. script for searching and managing packages

couldn't you make it check if the packages are already installed or not, like pajman does? That's something really simple and helpfull.

Offline

#20 2005-12-27 14:27:01

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

sure I can... wink
But first I have to reinstall my arch box again... hmm

Offline

#21 2006-01-11 17:46:59

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: qpkg - an ext. script for searching and managing packages

Found it once again very usefull when mplayer-cvs started to complain about missing libs.

$ qpkg -f liblzo.so
Searching for package that contains "liblzo.so"... 
/usr/lib/liblzo.so.1.0.0 is owned by lzo 1.08-4

$ qpkg -f mpcdec
Searching for package that contains "mpcdec"... 
/usr/include/mpcdec/config_types.h is owned by libmpcdec 1.2.1-1
/usr/include/mpcdec/decoder.h is owned by libmpcdec 1.2.1-1

$ qpkg -f libjack.so
Searching for package that contains "libjack.so"... 
/usr/lib/libjack.so is owned by jack-audio-connection-kit 0.100.0-3
/usr/lib/libjack.so.0 is owned by jack-audio-connection-kit 0.100.0-3

All i have to do was installing the packages qpkg printed smile

qpkg -f [some_file] is a great tool big_smile


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#22 2006-03-05 18:35:53

pkmorrison
Member
Registered: 2005-02-23
Posts: 15

Re: qpkg - an ext. script for searching and managing packages

recently qpkg started erroring on AUR search part
i tried reinstalling, but no joy
-------------------------------------------------------------------
# qpkg backup
Searching for the packages...

Search matches from the package names:

vapor/dvdbackup-0.1.1-1
dvd backup software
http://atum.lab.ic.unicamp.br/~lfelipe/arch/vapor

Search matches from AUR:

Traceback (most recent call last):
File "/usr/bin/qpkg", line 1582, in ?
matchingSpanTags = soup.fetch('span', desiredAttributes)
File "/usr/lib/python2.4/site-packages/qpkg/BeautifulSoup.py", line 491, in fetch
return self._fetch(name, attrs, text, limit, generator)
File "/usr/lib/python2.4/site-packages/qpkg/BeautifulSoup.py", line 187, in _fetch
if not self._matches(check, matchAgainst):
File "/usr/lib/python2.4/site-packages/qpkg/BeautifulSoup.py", line 244, in _matches
return howToMatch(chunk)
File "/usr/bin/qpkg", line 1579, in blueOrBlackMatcher
return value.lower() in ('blue', 'black', 'green')
AttributeError: 'NoneType' object has no attribute 'lower'
------------------------------------------------------------------------------------

Offline

#23 2006-03-05 21:26:33

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

pkmorrison wrote:

recently qpkg started erroring on AUR search part
i tried reinstalling, but no joy
-------------------------------------------------------------------
# qpkg backup
Searching for the packages...

Search matches from the package names:

vapor/dvdbackup-0.1.1-1
dvd backup software
http://atum.lab.ic.unicamp.br/~lfelipe/arch/vapor

Search matches from AUR:

Traceback (most recent call last):
File "/usr/bin/qpkg", line 1582, in ?
matchingSpanTags = soup.fetch('span', desiredAttributes)
File "/usr/lib/python2.4/site-packages/qpkg/BeautifulSoup.py", line 491, in fetch
return self._fetch(name, attrs, text, limit, generator)
File "/usr/lib/python2.4/site-packages/qpkg/BeautifulSoup.py", line 187, in _fetch
if not self._matches(check, matchAgainst):
File "/usr/lib/python2.4/site-packages/qpkg/BeautifulSoup.py", line 244, in _matches
return howToMatch(chunk)
File "/usr/bin/qpkg", line 1579, in blueOrBlackMatcher
return value.lower() in ('blue', 'black', 'green')
AttributeError: 'NoneType' object has no attribute 'lower'
------------------------------------------------------------------------------------

This can happen when the interface of AUR which will be searched by qpkg has changed.

Unfortunatly I've no working Arch atm, but I'll try to fix this asap.

Offline

#24 2006-03-10 09:23:07

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: qpkg - an ext. script for searching and managing packages

qpkg is a really nice script! Thank you for building it ( - oder danke, unter Deutschsprachigen  smile )

I also get the error pkmorrison posted. Would be nice to see a fixed qpkg sooner or later...

Cheers Sigi


Haven't been here in a while. Still rocking Arch. smile

Offline

#25 2006-03-10 15:36:33

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: qpkg - an ext. script for searching and managing packages

Unfortunatly this error-msg doesn't appear with all packages you're searching for... so it's hard to debug and fix... sad

Offline

Board footer

Powered by FluxBB