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.

I can use aptitude to search for packages using a search term. For example, to search for all packages whose name begins with Foo:

$ aptitude search Foo*

However, this listing does not include source packages (package with source code).

How do I search and list source packages using a search term?

share|improve this question
    
are you referring to packages.ubuntu.com ? –  VRU Jan 30 '13 at 4:38
add comment

2 Answers 2

Searching: I don't know how to perform a regex search over source package names using apt on the target machine, but one can perform a regex search over source package names by selecting "Source package names" under "Search package directories" at http://packages.ubuntu.com

Listing: Once you know the source package name 'foo', apt-cache showsrc foo shows the source package records for foo.

share|improve this answer
add comment

this is what I do (besides what is listed) using unity as a example

apt-cache policy unity*

or This is a much larger list that shows you the control files of packages apt-cache show unity*

Or you can use 'dump' to dump everything (not recommended)

apt-cache dump unity*

Or you can use dpkg also like

dpkg-query -l | grep unity*

Or you could use

apt-cache showpkg unity*    

Hope this helps

share|improve this answer
add comment

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.