LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2007, 04:05 AM   #1
Darkhorse8
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
What's the best way to get one program from debian unstable?


I'm currently running lenny and I dont want to upgrade my whole system to sid, but occasionally I want a program thats only in sid, like the latest version of pidgin. Whats the best way to get one application from unstable and keep it updated but not update my whole system to unstable? (I'm a new debian user, and new to linux in general too).
 
Old 08-20-2007, 04:43 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If the program doesn't have dependencies (which is unlikely), you can just download the .deb file and install it:
Code:
dpkg -i somefile.deb
if it has dependencies, it won't install (read: it will install, but very probably won't work, if you force it to) unless you also install the dependencies (other software that it needs). A lot of new programs (new as in from a newer version of the distribution) are based on newer libraries than older versions, so getting a single program from new version of your distribution to run on an older version usually does require you to upgrade also the libraries it depends on, or other software. Shortly said, usually you can't just install one program, but you do need to install more in order to get it working.

You can of course download the single deb file(s), force them to install if possible and see if it works or not. It probably won't, but then you can try to get the dependencies one at a time and do the same, and see how much it takes to get it run. My guess is that you'll end up downloading and installing them all, thus upgrading a big part of your system - easier done if you just install the whole new OS, using the "clean install" method which involves formatting root partition.

As for Pidgin, it's not much more (yet) than Gaim, except that they had to change some names because of lawsuits..maybe it'll be "more" in the future, but right now you can just as well use Gaim if you have it. It looks the same as the last version of Gaim, and acts the same.
 
Old 08-20-2007, 07:35 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Look at apt-pinning before mixing packages from multiple versions of Debian...

http://wiki.serios.net/wiki/Apt-Pinning_on_Debian


Basically you would pin the apt repositories with different priorities. then add the repositories to your sources list. then update and install the specific packages you want.

Be aware that due to dependencies you can still break your system like this.




another option is backports.org. where the new versions of software are compiled to use the libraries that are already in Debian Stable...
 
Old 08-20-2007, 08:24 AM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
This is how I think it should be done. Howto: Set up and Maintain a Mixed Testing/Unstable System
 
Old 08-20-2007, 02:45 PM   #5
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
Also, at least for Pidgin, it's now in Testing. So if you just have the Testing repo in sources.list when you do aptitude search pidgin it will come up with a list of pidgin and all the assorted plugins possible.

I just did aptitude install pidgin pidgin-this-plugin pidgin-that-plugin, etc, etc. (Not literally, you need to type in the actual plugins listed there from aptitude search, not this and that!)

What aptitude did was remove Gaim and replace it with Pidgin and all those plugins. That must have been changed recently because I remember people complaining about aptitude needing to remove a meta-package and some other important packages when folks wanted to have it remove Gaim. Now it just replaces Gaim with Pidgin, which is nice. Logout and in or do an update-menu and Pidgin appears in the appropriate places in the menu. The next time I did an aptitude safe-upgrade and aptitude full-upgrade (I do this nearly every day) aptitude also removed the Gaim configuration data files automatically. You can do that right away to get it over with.

For stuff you absolutely want from Unstable, Rickh's guide is really the way to go. No need for messing with an apt preferences file with all those confusing numbers. You just set your default in apt.pref (which you might not have yet, I don't since I haven't done this yet) and add all the repos to sources.list and aptitude will always keep track of this automatically for you. You just specify /unstable after the package name to get it from unstable instead of the default testing, and aptitude will get whatever associated dependencies it needs from unstable along with it. Then, when the package gets released to testing with the same or higher version aptitude will automatically get what it needs for that package from the default testing repo. Pretty cool!

Apt.pref is not the same as apt.preferences! Read his guide and do a bit more reading and you (probably) will be able to accomplish this easily.

Last edited by dahveed3; 08-20-2007 at 02:47 PM.
 
Old 08-20-2007, 04:23 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
You just set your default in apt.pref...
apt.conf ... /etc/apt/apt.conf
 
Old 08-20-2007, 11:30 PM   #7
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
Oh yeah. Serves me right trying to give advice from memory when I'm still new at this stuff myself.

Hopefully he read your how-to and so my attempt to help would be clarified by the CORRECT name of the file.

I just thought that a little more information and some ideas about what to read up on would be helpful to him.

I just played around with the Knoppix 5.2 DVD last night and experimented with setting things up using your guide.

Worked fine once I figured out the correct repos to type. I had to keep going back into my actual Debian install (accessed read-only by Knoppix) and correcting myself. Again, I was doing it by memory and so didn't have your guide in front of me. Just didn't want to search through my stacks of thousands of computer information printouts to find it.

I didn't actually complete it because even that cache Knoppix uses to buffer the DVD to create more space and whatever it uses on my actual Debian drive's swap partition ran out of space. Aptitude didn't have room for the huge amount of software needed for the aptitude upgrade. But I could see it was grabbing things from the correct repos! So I consider that experiment as being successful enough. I was just playing around anyway.

I set a Knoppix user password and a root password just in case it asked me for one when logging out and in. I've used Live cd's before that wouldn't allow anyway to log back in again. On this version of Knoppix anyway it didn't even ask me, just logging me back in automatically.

I did that right away as even though knoppix lang=us gives the us keyboard layout, KDE KControl's regional settings need to be switched as well to get the rest of the system and software set to US English. And that takes logging out and in after changing the setting.

What concerned me was although I used su - to do superuser tasks it still never prompted me for a password at all! And software that should require a password never asked either, just doing anything as if I was root. That can't be right!

And I had no idea what to put in the blank space in the Knoppix firewall settings it leaves open for you to type the commands into. I had used YaST in OpenSUSE and Firestarter in Debian and so have no clue what the iptables commands are to run a nice default configuration. So I was completely unprotected! Of course, only the current DVD cache was writable and not my hard drives so no harm could be done but still.

I've got the info in books but sure like Firestarter to do it for me. Comes from my lazy, GUI loving Windows background!

Anyway, thanks for the correction and also of course for the wealth of info I've read from your posts over at the Debian forums. I've learned a great deal from them. Just wish my memory worked like it used to!
 
  


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 let the Debian unstable mirto Debian 2 01-22-2006 11:15 PM
is ubuntu unstable less unstable than debian unstable? lefty.crupps Ubuntu 9 10-14-2005 01:38 PM
azureus and debian unstable torham Linux - Software 1 01-18-2005 05:47 AM
Debian is unstable NoviceW Debian 8 01-28-2004 06:25 AM
Progeny Debian Upgrade to Debian Unstable? mrmdls Debian 1 09-25-2003 07:57 AM

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

All times are GMT -5. The time now is 07:52 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