You are not logged in.

#1 2006-06-23 14:18:33

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

PkgInfo + PkgData

This is an application I have missed in Arch Linux, providing a broader package information beside Arch's home page. An information similar to freshmeat.net with details, thumbnails and types of application.

PkgInfo is an Arch Linux Package Information viewer developed in Ruby with the Glade interface. This program allows you to browse in main or application categories for basic package information with detailed descriptions and thumbnails. Also integrates simple package management via pacman for adding or removing packages.

Browse view + introduction (click thumbnails)
thumbnail-pkginfo_intro.jpg
Information detail view
thumbnail-pkginfo.jpg

Package name, version and short description are provided by pacman. The other informations from PkgData.
[PkgData is Arch Linux Package Data containing package details, types of app, and thumbnail. Also a simple script downloading latest information. Version 0.57 contains 57% of Arch's official packages.

How to install:
1. Enable "Community" repo in /etc/pacman.conf
2. Download pkgdata
http://user-contributions.org/projects/pkgdata/pkg/
pacman -A pkgdata-0.57-1.pkg.tar.gz
3. and pkginfo
http://user-contributions.org/projects/pkginfo/pkg/
pacman -A pkginfo-0.4.2-1-pkg.tar.gz.
Before pkginfo can be installed, install the dependency packages.

My thanks to Penguin helping with Bash scripts and Eugenia suggestions in usability. And Rubyforen.
http://www.rubyforen.de/index.php


Markku

Offline

#2 2006-06-26 04:11:09

linfocito
Member
From: Gurupi - TO, Brasil
Registered: 2003-05-18
Posts: 82

Re: PkgInfo + PkgData

I've been wishing that thing for so long!

x=0
while x=0 do;
      THANK YOU!;
end.

EDIT: Will you put that in AUR anytime?


"...archoholism is a hard disease to cure..."
Archlinux Brasil

Offline

#3 2006-06-26 04:48:37

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: PkgInfo + PkgData

Yes, it makes getting pkg info locally a snap. Thanks!


/path/to/Truth

Offline

#4 2006-06-26 05:02:45

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PkgInfo + PkgData

linfocito wrote:

EDIT: Will you put that in AUR anytime?

Version 0.4.3 will be in AUR once I find a good solution when using PkgInfo in user mode. The pacman features abs, -Syu, install and remove require root access. Sudo package will be in dependency but need to inform the user to add the user name in /etc/sudoers.

How to know if user has sudo access?  "[ `id -u` -ne 0 ]" only checks if root access.


Markku

Offline

#5 2006-06-26 05:22:55

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: PkgInfo + PkgData

AFAIK you can't check for sudo access, you have to assume that he have and execute whatever you want to under sudo, if it fails then he don't have permissions, You can simplify it like, if you want to write /var/lock/xxx for ex. write /tmp/x under sudo first (just echo so it won't fail unless he can't execute under sudo, this is a good workaround...

P.S: sudo id = 0

Offline

#6 2006-06-26 07:20:16

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PkgInfo + PkgData

_Gandalf_ wrote:

You can simplify it like, if you want to write /var/lock/xxx for ex. write /tmp/x under sudo first

If there is no permission sudo will ask for password. If the application is not started from a terminal, there is no password field to enter. The application freezes... waiting for pass.


Markku

Offline

#7 2006-06-26 10:20:06

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: PkgInfo + PkgData

rasat wrote:
_Gandalf_ wrote:

You can simplify it like, if you want to write /var/lock/xxx for ex. write /tmp/x under sudo first

If there is no permission sudo will ask for password. If the application is not started from a terminal, there is no password field to enter. The application freezes... waiting for pass.

You may want to look at gksu. Its a gui for su to gain root access.

Offline

#8 2006-06-26 15:21:14

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: PkgInfo + PkgData

Exactly,
@rasat check http://wael.nasreddine.com/files/config … n/wael_nfs , I've made this script to mount an NFS partition via a key binding long ago.

Offline

#9 2006-06-26 21:02:29

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PkgInfo + PkgData

I included both gksu (default) and sudo. In menu bar an option to turn sudo on and off with short introduction how to configure. If sudo is off, gksu is active. Gksu work well, though, I don't like the fade-in feature... like defective video card, also temporarily blanks out pkginfo's interface.

pkginfo ver. 0.5
AUR
http://aur.archlinux.org/packages.php?d … =1&ID=5776

pkgdata ver. 0.61
AUR
http://aur.archlinux.org/packages.php?d … =1&ID=5775

Arch pkg
http://user-contributions.org/projects/pkginfo/pkg/
http://user-contributions.org/projects/pkgdata/pkg/


Markku

Offline

#10 2006-06-26 22:05:29

tranquility
Member
From: Portugal
Registered: 2004-08-06
Posts: 136

Re: PkgInfo + PkgData

Got this error:

aurbuild -sa pkgdata
<snip>
loading package data... done.
checking dependencies... done.
checking for file conflicts...
error: failed to prepare transaction (conflicting files)
pkgdata: usr/bin/pkgdata exists in filesystem
pacman -Qo /usr/bin/pkgdata
/usr/bin/pkgdata is owned by icu 3.4.1-1

Offline

#11 2006-06-27 05:57:44

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PkgInfo + PkgData

Thanks for the information, good it was noticed at this stage.

I have replaced /usr/bin/pkgdata with /usr/sbin/pkgdatadl. Pkgdata is a lib package, now proper.
Both pkgdata (0.61.1) and pkginfo (0.5.1) are updated in AUR and usercb repo. Tested with aurbuild.


Markku

Offline

#12 2006-06-27 14:02:43

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PkgInfo + PkgData

Here are more information about PkgData.
http://blog.archlinux.org/2006/06/27/pkgdata/


Markku

Offline

#13 2006-09-14 07:41:35

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PkgInfo + PkgData

New update version 0.6
Minor bug fix. Includes Quick Start quide.

Earlier there was some problem with ruby-libglade in one of the dependency packages, now its fixed.


Markku

Offline

#14 2006-09-14 21:43:56

pbw
Member
From: Barrie ON, Canada
Registered: 2005-06-01
Posts: 65

Re: PkgInfo + PkgData

i was checking it out earlier today, seems quite useful. Good stuff rasat smile

Offline

#15 2007-05-18 20:21:10

s26c.sayan
Member
From: Kolkata, India
Registered: 2007-02-07
Posts: 176
Website

Re: PkgInfo + PkgData

Does the 'Install'/' Remove'  options work properly?

EDIT: Yes, It does!!!!!!! (post-installation reboot was needed!)

smile

Last edited by s26c.sayan (2007-05-20 07:53:45)


March Linux : An Arch Linux "distrolet" that I am trying to develop (March = My Arch!)
Please take a look......:)

Offline

#16 2008-01-30 16:36:51

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: PkgInfo + PkgData

@rasat
Could you explain me where/how you got this info? I'm referring to pkgdata's apps (detailed catagories) and desc (detailed descriptions) files. Is there a database somewhere (up-to-date) or did you make it?

Offline

Board footer

Powered by FluxBB