LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Searching for packages in terminal only


Hello,

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.

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

Rep: Reputation: Disabled
Apt-cache

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, 11:36 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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
Code:
man apt-cache
man apt-file
 
1 members found this post helpful.
Old 04-02-2012, 11:51 PM   #4
anomie
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).

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


Reply


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 07:30 PM
Searching for a Command in Terminal M.BHARGAVA Linux - Distributions 1 12-03-2010 03:41 AM
Searching for SlackBuilds packages El Nigromante Slackware 2 02-17-2009 04:28 PM
Searching linspire packages DCboi Linspire/Freespire 4 08-11-2007 02:58 PM
Searching For Packages (Up2date) carlosinfl Red Hat 2 05-15-2007 02:41 PM


All times are GMT -5. The time now is 04:32 PM.

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