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 06-20-2012, 04:25 AM   #1
journe
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
downloading specific package from specific source


I am running Debian 3.0 on an Ultra 1. I need to install version 0.6.45 of the apt package.

As best I understand, the way to download is to include the desired source in sources.list and then to issue either an aptitude download <pkg> or an apt-get update <pkg>

My specific need is to downgrade apt 0.6.46 to 0.6.45, which is why I mention update instead of install. Feel free to correct anything here if I am mistaken.

I found that the file I need, apt_0.6.45_sparc.deb, can be found at snapshot.debian.org/package/apt/0.6.45/#apt_0.6.45

The problem is that the format of the sources.list entry is:

deb http://<site>/debian <distro> <component>

but the site I want to use doesn't appear to be organized that way.

1) How do I format the sources.list entry to use snapshot.debian.org ?

2) How do I direct apt-get to pull a specific version of a package ?

3) Is there a specific order in which entries should appear in sources.list ?

4) Is there anything else I need to know that I didn't mention ?

Thanks for the help.
 
Old 06-20-2012, 06:02 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
I've no experience with sparc, but unless you've any very compelling reasons for staying with an unsupported release - you should upgrade to Debian 6.0.
 
Old 06-20-2012, 05:26 PM   #3
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
On the front page of snapshot.debian.org are Usage instructions. Follow your link all the way until you see the timestamp string in the path:
Code:
http://snapshot.debian.org/archive/debian/20060728T000000Z/pool/main/a/apt/apt_0.6.45_sparc.deb
and then it says to arrange sources.list like this (if 3.0 is Woody)
1)
Code:
deb     http://snapshot.debian.org/archive/debian/20060728T000000Z\ woody main
deb-src http://snapshot.debian.org/archive/debian/20060728T000000Z/ woody main
deb     http://snapshot.debian.org/archive/debian-security/20060728T000000Z/ woody/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20060728T000000Z/ woody/updates main
2) apt-get install apt=0.6.45

3) sources.list is loaded in order from top

4) Of course, there is always something we need to know before we know it! :-)
I'd definitely use the -s install option first to see what might happen. Good luck!
 
Old 06-20-2012, 10:20 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

nice answer EYo, but I suspect apt-get did not have the functionality to specify a version number on the command line (Q/A 2)) all the way back then .

Simplest approach may be:
Code:
% wget http://snapshot.debian.org/archive/debian/20060728T000000Z/pool/main/a/apt/apt_0.6.45_sparc.deb
# dpkg -i apt_0.6.45_sparc.deb
+1 to caravel's suggestion to upgrade.

Cheers,

Evo2.
 
Old 06-21-2012, 12:17 AM   #5
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
To expand on Caravel and evo2's advice to up-grade, 3.0 indicates that you are using Woody, which is four releases behind the current Squeeze.

  • 3.0_r0 to 3.0_r6 (Woody)
  • 3.1_r0 to 3.1_r8 (Sarge)
  • 4.0_r0 to 4.0_r9 (Etch)
  • 5.0.0 to 5.0.10 (Lenny)
  • 6.0.0 to XXX (Squeeze)
Sarge was released in June/05, so support for Woody ended in '06. Unless there is a very good reason to use such an old version, you should up-date the system. Woody has not received security up-dates for six years!
 
Old 06-21-2012, 04:44 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Security support for woody ended 6 years ago... if your machine is running as a server, then it's certainly not ideal (unless you're trying to get hacked?).

The upgrade path seems complex but is entirely possible if you have the patience to read the release notes for each release, if the system is quite simple and you make use of the debian archive to "step" from one release to the next. Equally though, if the system is simple enough and none of the configuration worth preserving - back up and reinstall squeeze from scratch.

But first I'd like to know why you want v0.6.45 of apt?

Last edited by cynwulf; 06-21-2012 at 04:48 AM.
 
  


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
[SOLVED] Downloading specific files from an rsync site Skaperen Linux - Software 2 11-30-2011 12:35 PM
IsThere a fridge, that we can program at specific date/time to unfreeze specific food frenchn00b General 3 07-21-2009 11:26 PM
Downloading kernel source for a specific redhat version lennyk Red Hat 3 07-07-2009 08:43 PM
downloading a specific version of mozilla via cvs whansard Linux - Software 0 04-30-2004 02:29 PM
downloading specific files stalls spuzzzzzzz Linux - Networking 3 12-10-2003 03:49 PM

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

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