LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to 'apt-cache search' & 'apt-file search' by distribution? (https://www.linuxquestions.org/questions/debian-26/how-to-apt-cache-search-and-apt-file-search-by-distribution-171701/)

davidas 04-18-2004 12:58 PM

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 !

macondo 04-18-2004 08:41 PM

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.

davidas 04-18-2004 11:15 PM

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.


macondo 04-19-2004 01:56 PM

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?


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