This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[KIO] KIO package search

8

Votes
11
3
Tags: None
(comma "," separated)
alteo_gange
Registered Member
Posts
2
Karma
0
OS

[DONE] [KIO] KIO package search

Tue Mar 31, 2009 3:15 pm
Hi all,

I think of a new KIO.
It would display a "virtual tree" of a deb or rpm package.

For example, if you typed the pattern "package:/kmplayer" in the Konqueror (or Dolphin) search bar, the following tree would appear:

Code: Select all
usr/
usr/bin/
usr/bin/kmplayer           
usr/bin/kxvplayer 
usr/lib/
usr/lib/kde3/kmplayer.so   
usr/lib/libkdeinit_kmplayer.so
usr/share/
usr/share/applications/
usr/share/applications/kde/
usr/share/applications/kde/kmplayer.desktop
usr/share/apps/
usr/share/apps/kmplayer/
usr/share/apps/kmplayer/kmplayerui.rc     
usr/share/doc/kmplayer/AUTHORS             
usr/share/doc/kmplayer/README             
usr/share/doc/kmplayer/README.Debian       
usr/share/doc/kmplayer/TODO               
usr/share/doc/kmplayer/changelog.Debian.gz
usr/share/doc/kmplayer/copyright
usr/share/lintian/
usr/share/lintian/overrides/
usr/share/lintian/overrides/kmplayer
usr/share/man/
usr/share/man/man1/
usr/share/man/man1/kmplayer.1.gz           
usr/share/man/man1/kxvplayer.1.gz
usr/share/menu/
usr/share/menu/kmplayer


The pattern "package:/" would display the list of all the packages:
Code: Select all
abcde/
acl/
acpid/
acpi/
acpi-support/
[...]
yelp/
zenity/
zim/
zip/
zlib1g-dev/
zlib1g/
User avatar
Primoz
Moderator
Posts
859
Karma
1
OS

RE: [KIO] KIO package search

Tue Mar 31, 2009 5:38 pm
Well I think this is a great idea. It's just that there are few problems:
First: what about all of us that don't use nor .deb nor .rpm?
Second: It's platform specific, but I think that this could be developed for Linux and BSD (probably to) based KDE only.

But I like the general idea as I found myself searching through whole root for packages not knowing where to look so this could be a real gift in terms of
making searching for packages easier.


Primoz, proud to be a member of KDE forums since 2008-Nov.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

RE: [KIO] KIO package search

Tue Mar 31, 2009 9:21 pm
This should also work for .deb and .rpm files that are stored on your drive, so that you can click on a file in Dolphin and view it in the appripriate kio slave (or at the very least have the option available in the right-click menu).

We already have kpackagekit, which is platform-specific and deals with RPM and DEB files. So I don't think that is really a problem.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
Primoz
Moderator
Posts
859
Karma
1
OS

RE: [KIO] KIO package search

Tue Mar 31, 2009 9:39 pm
Oh I forgot about KPackageKit.
But still something that would support any packages would be great to.
But on the other hand Shaman2 (a pacman fronztend from KDEmod) will show dependencies of the package and also pckages that depend on that package.
So I'm strating to think its implemented for major distros in form of KPackageKit, and smaller distros are on their own to create support, just like KDEmod for Arch :D


Primoz, proud to be a member of KDE forums since 2008-Nov.
User avatar
Angel Blue01
Registered Member
Posts
220
Karma
0
OS

RE: [KIO] KIO package search

Wed Apr 01, 2009 1:30 am
Even if it is distro-specific this would be nice


Proudly dual-booting openSUSE 11.1 with KDE 4.3 and Windows Vista on a Toshiba A205-S4577 since July 2007.
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS

RE: [KIO] KIO package search

Tue Apr 07, 2009 11:02 pm
Just started coding this (using package-kit). Will post when I have something test-worthy. (Hopefully just after Easter)
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

RE: [KIO] KIO package search

Tue Apr 07, 2009 11:27 pm
Primoz wrote:Second: It's platform specific, but I think that this could be developed for Linux and BSD (probably to) based KDE only.


Is it? Platform specific I mean. I can think of a few examples when it would be very handy to examine .rpms and .debs like that on Windows and Mac systems, and especially if it would allow you to drag and drop to extract a specific file. For example, font-packages. Or say a package meant for a server and you want to look at the directory-structure or change-log file or whatever before employing it.

Besides, I'm all for cross-platform but if some feature is only applicable for Linux/Windows/MacOS I don't think that's necessarily a problem. I'd consider that a bonus really, in that it makes KDE able to adapt to the environment it's being used in.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
The User
KDE Developer
Posts
647
Karma
0
OS

RE: [KIO] KIO package search

Tue Apr 07, 2009 11:32 pm
Nice.
It's complicate to get this paths manually using rpm or dpkg and starting Yast takes too much time.
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS

RE: [KIO] KIO package search

Wed Apr 08, 2009 10:41 am
I was only intending on implementing viewing the contents of installed packaged .(the equivalent of dpkg -L)

If you wanted to see the files / changelog /etc of a .rpm or .dpkg file surely you'd just open it in ark?
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS

RE: [KIO] KIO package search

Sun May 24, 2009 7:12 pm
Finished! More info and download link on my site: http://www.sharpley.org.uk/page/software/packagekio it uses package kit as the backend.

Please leave feedback here or email me. kde at david edmunson . co.uk

Last edited by david_edmundson on Tue May 26, 2009 7:33 am, edited 1 time in total.
pembo13
Registered Member
Posts
75
Karma
0
OS

RE: [KIO] KIO package search

Tue May 26, 2009 7:12 am
alteo_gange wrote:I think of a new KIO.
It would display a "virtual tree" of a deb or rpm package.


I've had more or less the same idea before, essentially a packages:// KIO. However, such a tool should really only talk to PackageKit, ie. it shouldn't attempt to operate at any level lower than that.
alteo_gange
Registered Member
Posts
2
Karma
0
OS

RE: [KIO] KIO package search

Tue May 26, 2009 5:16 pm
:-)

Thanks David! I'll test it as soon as I've installed Ubuntu Jaunty.
The User
KDE Developer
Posts
647
Karma
0
OS

RE: [KIO] KIO package search

Tue May 26, 2009 8:47 pm
Buildservice is currently building it. ;)
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS

RE: [KIO] KIO package search

Thu May 28, 2009 3:53 pm
ooh! Do you have a link to the build service output? I had a look but couldn't see anything.

I'll write a page on kde-apps.org soonish.

Are there any problems with my software or can I ask a moderator to move this thread to the "Done" folder?
Lukas
Registered Member
Posts
427
Karma
0

RE: [KIO] KIO package search

Thu May 28, 2009 5:12 pm
Doesn't work for me (openSUSE 11.1, kde 4.3beta)

protocol ir recognized by the system, but returns empty results :(


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]