Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way where I can get information about a package which is in Ubuntu Software Center, such as package-title package-size package-logos etc. through php or javascript?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

To get packages information you would need to fetch it from the repository and import to your own datasource.

To find the packages indexes which include title's, sisz'es you use: http://archive.ubuntu.com/ubuntu/dists/release/ # each directory here is a repository section # http://archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz # Select the desired arechitcture with binary-i386 or binary-amd64 The file containing the information is: http://archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.bz2

To get the thumbnail for a specific package:

http://screenshots.ubuntu.com/thumbnail/packagename

share|improve this answer
    
Don't forget to set the the question as answered later :) –  João Pinto Jan 7 '11 at 12:18
    
Thank you João it was just what I was looking for ;) –  Voidcode Jan 7 '11 at 12:48
    
But how do I get the logo of a package not the screenshots? –  Voidcode Jan 7 '11 at 12:50
    
The icons are available from the app-install-data package, once installed the icons are available on your system at: /usr/share/app-install/icons/ . –  João Pinto Jan 7 '11 at 13:27
    
Many thanks.. faster response time than through a normal commercial support page .. really nice João ;) –  Voidcode Jan 7 '11 at 20:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.