search for a debian package


I tried this command to install xfree86, but it didn't work.  Does anybody know how to search for a package by name?  Or is there a directory of packages I can browse so I can find the ones I want without having to know the exact name?

# apt-get install xfree86
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xfree86

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi bryanlloydharris,

to search in the name and the package descriptions
apt-cache search xfree86

to search only in the name
apt-cache search xfree86 --names-only

Hope this helps!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee W, MVPTechnology and Business Process AdvisorCommented:
I've forgotten the exact steps required, but it's just a tad tricky.

Look through the packages by bbrowsing them with apt-cache search - for example:

apt-cache search x
And don't forget, some things can be case sensitive, so review
apt-cache search X
as well.
bryanlloydharrisAuthor Commented:
Thank you!

I was having to compile it from source, but in much less time it was able to do it this way.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.