LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-14-2009, 05:44 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
packages not from stable


Ok, here is an interesting question (at least as per me):

Let's say I installed a Debian stable (lenny) system and then slowly over a period of time I added some external repo likes testing,sid and some more repos from Ubuntu and installed packages from these repositories.

Now I would like to find out all the packages that are installed on my system which do not belong to the Debian stable branch.

Is there any command(s) that will print a list of such packages?
 
Old 07-14-2009, 06:54 PM   #2
sigarni
LQ Newbie
 
Registered: Nov 2006
Location: Sydney, Australia
Distribution: PCLinuxOS MATE 2014
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by kushalkoolwal View Post
Ok, here is an interesting question (at least as per me):

Let's say I installed a Debian stable (lenny) system and then slowly over a period of time I added some external repo likes testing,sid and some more repos from Ubuntu and installed packages from these repositories.

Now I would like to find out all the packages that are installed on my system which do not belong to the Debian stable branch.

Is there any command(s) that will print a list of such packages?
I am unsure about cli command, but I do know that in Synaptic Package Manager there is an option to list packages by "Origin". That is, by repo they come from. Perhaps that will get you started?

Sigarni
 
Old 07-14-2009, 09:28 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
1) Do NOT use Ubuntu repo
2) Use backports.org or backport the apps you need from sid yourself

Something like
dpkg -l | grep sidux | awk '{print $2}'
dpkg -l | grep google | awk '{print $2}'
change the sidux, google etc to whatever repo name you are looking for

$ dpkg -l | grep google | awk '{print $2}'
google-chrome-unstable
 
Old 07-15-2009, 09:47 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Another way would be:

aptitude install apt-show-versions

Then search for the relevant packages for example:

apt-show-versions | grep unstable

And as Craigevil has said,don't mix Debian with it's derivatives.
 
Old 07-15-2009, 11:46 AM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by craigevil View Post
2) Use backports.org or backport the apps you need from sid yourself
Craigevel, this is something that has crossed my mind many times. Do you know any good guide which explains (with an example) how to do this? Also in the past I have looked into the backporting issue but it seems that not all packages can be backported easily.
 
Old 07-15-2009, 03:57 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
backporting from sid is not difficult:
1) Add ONLY a "deb-src ..." line for sid to your sources.list. 2) apt-get update 3) apt-get install build-essential; apt-get build-dep packagename;apt-get -b source packagename; 4) install the resultant debs.

I know several people that run stable with a few packages from backports.org and things like pidgin, iceweasel all backported from sid themselves. Packages with a lot of depends can take a while to build though so be patient.
 
Old 07-15-2009, 04:48 PM   #7
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by craigevil View Post
backporting from sid is not difficult:
1) Add ONLY a "deb-src ..." line for sid to your sources.list. 2) apt-get update 3) apt-get install build-essential; apt-get build-dep packagename;apt-get -b source packagename; 4) install the resultant debs.

I know several people that run stable with a few packages from backports.org and things like pidgin, iceweasel all backported from sid themselves. Packages with a lot of depends can take a while to build though so be patient.
How about about packages that we want to backport which depend on certain package (say A-4.2 and B-2.1) version which are not in stable. Then do we have to go and fetch those package (A-4.2 and B-2.1) sources and backport them first to in order to install our original packages. What if we get stuck in a spiral dependency trap. An example would let's say if I want to backport a xserver-xorg-video-<package> to stable - that would probably mean backporting the entire xserver-xorg package which is insane!!!
 
  


Reply



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
How to install packages from old stable Debian releases keenboy Linux - Software 2 02-27-2009 07:58 AM
Problems installing packages from stable pwaring Debian 2 10-11-2005 05:33 AM
Packages update in Stable Artik Debian 15 08-10-2005 03:08 AM
Downgrading all packages to stable keripukki Debian 2 10-25-2004 02:47 PM
Can I install testing packages on stable? marta Debian 5 11-20-2003 09:03 AM

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

All times are GMT -5. The time now is 12:03 AM.

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