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 ! |
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. |
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> 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:
|
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. |