LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   searching backports with apt-cache (https://www.linuxquestions.org/questions/debian-26/searching-backports-with-apt-cache-678890/)

Guest1234 10-24-2008 04:43 PM

searching backports with apt-cache
 
I'm running debian etch and I have added backports to my /etc/apt/sources.list and modified /etc/apt/preferences to do pinning and preformed apt-get update afterwards.

My question is, how do I search available packages from backports via apt-cache?

Running "apt-cache search bash-doc" returns only one result and when I perform "apt-cache policy bash-doc"
I see only the stable source, even though I know that there is a newer
version available in backports.
Code:

bash-doc:
  Installed: 3.1dfsg-8
  Candidate: 3.1dfsg-8
  Version table:
 *** 3.1dfsg-8 0
        900 http://http.us.debian.org stable/main Packages
        100 /var/lib/dpkg/status

This is my /etc/apt/sources.list file:
Code:

# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 CD Binary-1 20080803-21:07]/ etch contrib main

deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 CD Binary-1 20080803-21:07]/ etch contrib main

deb http://http.us.debian.org/debian/ stable main contrib non-free
deb-src http://http.us.debian.org/debian/ stable main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

deb http://www.backports.org/debian etch-backports main contrib non-free

This is my /etc/apt/preferences file:
Code:

Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 900

Package: *
Pin: release a=etch-backports
Pin-Priority: 200

Package: *
Pin: release o=Debian
Pin-Priority: -10

Do you guys know what could be the problem?
Thanks in advance.

Jongi 10-24-2008 06:10 PM

I would be interested in this

AlucardZero 10-24-2008 06:39 PM

What makes you think etch-backports has bash-doc in it?

http://packages.debian.org/search?ke...etch-backports

It'll work as you have it, if you pick a package that's in etch-backports too.

Code:

alucard@karrde:~$ apt-cache policy lighttpd
lighttpd:
  Installed: 1.4.19-5
  Candidate: 1.4.19-5
  Version table:
 *** 1.4.19-5 0
        100 /var/lib/dpkg/status
    1.4.19-5~bpo40+1 0
        625 http://www.backports.org etch-backports/main Packages
    1.4.13-4etch11 0
        650 http://debian.lcs.mit.edu etch/main Packages
        650 http://security.debian.org etch/updates/main Packages


Guest1234 10-25-2008 07:31 AM

You're right, I got confused.
I did search bash-doc and got the page you did, but then I click on the "Some results have not been displayed..." and saw newer version but somehow failed to notice they were related to lenny or sid.

Thanks :)


All times are GMT -5. The time now is 02:20 AM.