LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-18-2004, 12:58 PM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
How to 'apt-cache search' & 'apt-file search' by distribution?


/etc/apt/sources.list:

deb http://http.us.debian.org/debian stable main contrib non-free
deb http://http.us.debian.org/debian unstable main contrib non-free
deb-src http://http.us.debian.org/debian stable main contrib non-free
deb-src http://http.us.debian.org/debian unstable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

What arguement should I use with 'apt-cache search' and 'apt-file search' to specific the distribution?

Eg. If I want to search for source packages (or normal packages) in unstable distribution, what would the complete command for 'apt-cache search' and 'apt-file search'?

Thanks !
 
Old 04-18-2004, 08:41 PM   #2
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 49
What distribution are you in: Sid or Woody? it seems to me you wanna be on both.

Once you decide which one you are gonna choose, the command is:

apt-cache search (name of package) or category.
 
Old 04-18-2004, 11:15 PM   #3
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
I'm tracking Woody, but would like to search for packages/information on updated packages in Sid. With apt-get, I can do a
Code:
apt-get install -t <distribution> <packagename>
and install the package from <distribution>.

Eg. There is a grub v1.0 package in Woody, which I can easily search for with apt-cache search grub. Assume there is grub v2.0 in Sid. When I do a apt-cache search grub, can it return the information from the grub v2.0 package in Sid instead of grub v1.0 package from Woody? i.e. Is there a similar arguement (aka -t) to specific the distribution for apt-cache search / apt-file search ?

Thanks !

Quote:
Originally posted by macondo
What distribution are you in: Sid or Woody? it seems to me you wanna be on both.

Once you decide which one you are gonna choose, the command is:

apt-cache search (name of package) or category.

Last edited by davidas; 04-18-2004 at 11:21 PM.
 
Old 04-19-2004, 01:56 PM   #4
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 49
If you're in Woody, wouldn't it be easier to just go to debian.org look in packages for sid? instead of running the chance to mess up your system?
 
  


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
Does anyone know of a bash script can search & replace txt in a file. jimwelc Linux - Newbie 6 09-15-2008 12:13 AM
apt could not lock the cache file abadile Debian 4 06-20-2005 12:35 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
trying to search and replace text file for single & multiple line breaks separately brokenfeet Programming 7 08-29-2003 01:56 PM
APT questions -- file on the mirror, not in the cache... MatthewSabin Linux - Software 6 06-14-2003 11:34 PM


All times are GMT -5. The time now is 07:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration