LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-09-2004, 10:22 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
How can I install just one or two packages from another "favor" with apt-get?


I'm currently on "Sarge". How do I go about using apt-get install, apt-file search and apt-cache search on another favor(eg. Unstable), without affecting the integrity of my packages which are on "Sarge" distribution?

Thanks
 
Old 04-09-2004, 10:39 AM   #2
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 30
Edit your /etc/apt/sources.list and uncomment the unstable urls for debian addresses. Then use synaptic to browse the packages in upgrade and install areas. Synaptic will show a tab for a description of the package and also the dependencies. You can then decide whether or not it will be safe for you to use packages that come from unstable. It's easier to see dependencies this way instead of just using apt-get.
 
Old 04-09-2004, 03:03 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Re: How can I install just one or two packages from another "favor" with apt-get?

Quote:
Originally posted by davidas
I'm currently on "Sarge". How do I go about using apt-get install, apt-file search and apt-cache search on another favor(eg. Unstable), without affecting the integrity of my packages which are on "Sarge" distribution?

Thanks
You would need to use apt pinning in your /etc/apt/apt.conf you need a Default Release line telling the package system which branch of the archives you want to track. Then you need an /etc/apt/preferences file to define the pin priority for the packages.

Code:
>$ cat /etc/apt/apt.conf
APT::Default-Release "testing";
APT::Get::Show-Versions "true";
APT::Cache-Limit 10000000;
Apt::Get::Purge;
APT::Clean-Installed;

>$ cat /etc/apt/preferences
Package: *
Pin: release testing
Pin-Priority: 900

Package: *
Pin: release unstable
Pin-Priority: 600
Make sure that you have the Cache-Limit line in the apt.conf file before you apt-get update after adding unstable to the sources.list or your apt cache will give you a Dynamic mmap out of room error. Now when you install a package you will get it from testing by default and if you want to install a package from unstable you would use apt-get -t unstable install package_name and it would install the package from unstable sometimes it complains about a version of a library that needs to be a higher version before it will install a package you would just add it on to the end of the install line to get the version needed from the unstable branch.
 
Old 04-09-2004, 07:58 PM   #4
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
Re: Re: How can I install just one or two packages from another "favor" with apt-get?

For commands like apt-cache search and apt-file search, will they search from the unstable branch too, if testing branch is my default?

Also, if you do a apt-cache show <packagename>, will they show information of the package from the testing or unstable branch?

Thanks


Quote:
Originally posted by HappyTux
You would need to use apt pinning in your /etc/apt/apt.conf you need a Default Release line telling the package system which branch of the archives you want to track. Then you need an /etc/apt/preferences file to define the pin priority for the packages.

Code:
>$ cat /etc/apt/apt.conf
APT::Default-Release "testing";
APT::Get::Show-Versions "true";
APT::Cache-Limit 10000000;
Apt::Get::Purge;
APT::Clean-Installed;

>$ cat /etc/apt/preferences
Package: *
Pin: release testing
Pin-Priority: 900

Package: *
Pin: release unstable
Pin-Priority: 600
Make sure that you have the Cache-Limit line in the apt.conf file before you apt-get update after adding unstable to the sources.list or your apt cache will give you a Dynamic mmap out of room error. Now when you install a package you will get it from testing by default and if you want to install a package from unstable you would use apt-get -t unstable install package_name and it would install the package from unstable sometimes it complains about a version of a library that needs to be a higher version before it will install a package you would just add it on to the end of the install line to get the version needed from the unstable branch.

Last edited by davidas; 04-09-2004 at 08:02 PM.
 
  


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
FC4: enhancing fresh install, "must have" packages? TokyoYank Fedora 7 06-02-2006 07:35 AM
Where to download rpm packages of "gocr" and "kooka" satimis Linux - Software 6 02-24-2006 12:35 AM
question about fc3 "install or remove packages" tool trempel Fedora 10 08-01-2005 06:10 AM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 09:19 PM
"Pshyche 8.0" disk 2 needed to install packages ankitmathur Red Hat 3 03-17-2004 12:15 AM


All times are GMT -5. The time now is 12:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration