LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Thread Tools
Old 04-09-2004, 09:22 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Thanked: 0
How can I install just one or two packages from another "favor" with apt-get?


[Log in to get rid of this advertisement]
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
davidas is offline     Reply With Quote
Old 04-09-2004, 09:39 AM   #2
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287
Thanked: 0
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.
CBlue is offline     Reply With Quote
Old 04-09-2004, 02:03 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,511
Thanked: 0
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.
HappyTux is offline     Reply With Quote
Old 04-09-2004, 06:58 PM   #4
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Thanked: 0

Original Poster
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 07:02 PM..
davidas is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 02:37 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration