Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2012, 09:20 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
Searching for packages in terminal only


I would like information on all methods of searching for packages strictly through the terminal. As of now I tend to rely on a separate computer with google to find the exact package name and command to install from terminal, but I want to know how to search strictly through terminal or if this is even a viable way of doing it. I mainly use Ubuntu and Debian.

Old 04-02-2012, 09:50 PM   #2
LQ Newbie
Registered: Dec 2011
Posts: 16

Rep: Reputation: Disabled

I don't know if this is the only way to do this, but one useful command is apt-cache search.

For example, if i want to find packages that provide the easy_install command:

$ sudo apt-get update
$ apt-cache search easy_install
python-pip - alternative Python package installer
python-virtualenv - Python virtual environment creator
1 members found this post helpful.
Old 04-02-2012, 10:36 PM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
In addition to what yooman posted, the apt-file utility comes in very handy when searching which package contains a specific file. apt-file is not installed by default, you have to do that first. Together with apt-cache it should cover all possible search situations.
For more info on those utilities have a look at
man apt-cache
man apt-file
1 members found this post helpful.
Old 04-02-2012, 10:51 PM   #4
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Another approach is with aptitude(8).

# aptitude search 'regex_here'
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I search for unofficial packages in Slackware? *Packages like guake terminal* theif519 Slackware 7 06-24-2011 06:30 PM
Searching for a Command in Terminal M.BHARGAVA Linux - Distributions 1 12-03-2010 02:41 AM
Searching for SlackBuilds packages El Nigromante Slackware 2 02-17-2009 03:28 PM
Searching linspire packages DCboi Linspire/Freespire 4 08-11-2007 01:58 PM
Searching For Packages (Up2date) carlosinfl Red Hat 2 05-15-2007 01:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration