LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-24-2008, 04:43 PM   #1
Guest1234
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 33

Rep: Reputation: 15
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.
 
Old 10-24-2008, 06:10 PM   #2
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
I would be interested in this
 
Old 10-24-2008, 06:39 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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
 
Old 10-25-2008, 07:31 AM   #4
Guest1234
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 33

Original Poster
Rep: Reputation: 15
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
 
  


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
apt-get error in ubuntu dapper-backports immortaltechnique Linux - Networking 1 11-02-2007 05:37 PM
Searching for a free web cache server distro, or make one with squid. kamaradski Linux - Distributions 2 12-07-2006 01:04 PM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 10:02 AM
apt-file vs apt-cache vsurlan Linux - Software 1 07-13-2006 06:33 AM
Apt-get update ignores some backports subnet Debian 5 09-22-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:30 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
Open Source Consulting | Domain Registration