Re: How do you move to testing/etch?

2005-09-20 Thread Basajaun
Joseph Haig wrote:
 --- marc [EMAIL PROTECTED] wrote:

  Hi,
 
  I've scoured the archives and docs, and googled the globe, but I
  cannot
  find an explanation for safely moving - as safe as it can be - from
  stable/sarge to testing/etch.

[snip]

  My best guess is to edit /etc/apt/sources.list, and apt-get update,
  apt-get dist-upgrade, but can anyone point to a good description of the
  process, please.

 I am by no means an expert, but I believe that your 'best guess' is all
 that is needed - it works for me, at least.  So in summary, edit
 /etc/apt/sources.list, replacing sarge or stable in each line with etch
 or testing and then execute the following:

 $ apt-get update
 $ apt-get dist-upgrade

[snip]

Here a man apt_preferences would help a lot. I was also confused by
the way in which packages are chosen from the repositories one has in
/etc/apt/sources.list, until I began editing /etc/apt/preferences (for
which I took a look at the man page of apt_preferences).

I can't say my grasp of the matter is perfect, but this is what I
understand: aptitude (or apt-get), when called with the update
argument, connects to all of the repositories you specify, and builds,
not only a list of available packages, but also different versions (if
it finds more than one), the release to which each one belongs, and the
preference order of the versions, according to some settings, which
give each package version an score. Then aptitude upgrade will
install not the newest versions of each package, but the one with
highest score.

That part about the score is the one you tune with
/etc/apt/preferences. In the absence of this file, how does apt know
what to install? More or less it installs the newest version it finds
in the repositories. If you set your /etc/apt/preferences to giving the
Etch packages say 500 points by default, and you have Sid and Etch
repositories, and package whatever is 1.1 in Etch, and 1.3 in Sid,
then an aptitude update will give the Sid version say 200 points
because it is the newest it finds, but then the 500 points the 1.1 Etch
starts with win, and you get the Etch package.

However, if you had the 1.2 version installed, and aptitude gave the
1.1 Etch version a penalty of -400 points because it is older than the
one already installed, then the 1.3 Sid would win 200 vs. 100 (The
figures are completely made up by me).

HTH,

 Basajaun


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How do you move to testing/etch?

2005-09-19 Thread Michelle Konzack
Am 2005-09-15 13:04:37, schrieb marc:

 To move to testing - and presuming my understanding that non-US is now 
 void - is this the appropriate sources.list? (mirrors to be changed per 
 user.)
 
 deb http://http.us.debian.org/debian stable main contrib non-free
   ^^
 This is OK,
 deb http://http.us.debian.org/debian etch   main contrib non-free
   
but this should be testing

 deb http://security.debian.org stable/updates main contrib non-free
 deb http://secure-testing.debian.net/debian-secure-testing 
 etch/security-updates main contrib non-free
  
Change this to testing too.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How do you move to testing/etch?

2005-09-15 Thread marc
Chris Martin said...
 On 9/14/05, marc [EMAIL PROTECTED] wrote:
  
  My best guess is to edit /etc/apt/sources.list, and apt-get update, apt-
  get dist-upgrade, but can anyone point to a good description of the
  process, please.
 
 ^^^ pointing to description of the process ^^^
 
 This is out of date?
 http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html
 It was updated a month ago.

I just grabbed the latest update and it's a good guide to apt. It does 
ref non-US, which I thought had disappeared.

It doesn't, however, explicitly describe a move to testing, though.

  In addition, is there a written example of adding a package from sid?
 
 Be sure sid is in apt.sources, then...

 apt-get install package
 That should get sid if you have no /etc/apt/preferences

 or the more sureshot way
 apt-get -t distribution install package

Yup, the HOWTO states the following method:

Add to /etc/apt/apt.conf (create file, if necessary):

APT::Default-Release stable; 
(or APT::Default-Release testing;
 or APT::Default-Release unstable;)

then

# apt-get -t distribution install package

This requires an appropriate line in /etc/apt/sources.list
deb URI distribution section1 section2 section3

Presumably the APT::Default-Release distribution; stops apt-get 
update from using the sources.list deb line from moving all packages to 
that distribution - a bit like PIN, but for the whole install.

Anyway, going back to move to testing/etch:

The default sources.list, sans comments and deb-src lines is:

deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib 
non-free
deb http://security.debian.org stable/updates main contrib non-free

To move to testing - and presuming my understanding that non-US is now 
void - is this the appropriate sources.list? (mirrors to be changed per 
user.)

deb http://http.us.debian.org/debian stable main contrib non-free
deb http://http.us.debian.org/debian etch   main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
deb http://secure-testing.debian.net/debian-secure-testing 
etch/security-updates main contrib non-free

-- 
Best,
Marc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



How do you move to testing/etch?

2005-09-14 Thread marc
Hi,

I've scoured the archives and docs, and googled the globe, but I cannot 
find an explanation for safely moving - as safe as it can be - from 
stable/sarge to testing/etch.

The Debian Reference has chapter 5, 'Upgrading a distribution to stable,
testing, or unstable', but it is non-generic and very much out of date - 
as well as stating, After properly setting up /etc/apt/sources.list and 
/etc/apt/preferences as described above you can begin the upgrade., 
without actually saying what needs to be done.

My best guess is to edit /etc/apt/sources.list, and apt-get update, apt-
get dist-upgrade, but can anyone point to a good description of the 
process, please.

In addition, is there a written example of adding a package from sid?

-- 
Best,
Marc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How do you move to testing/etch?

2005-09-14 Thread Chris Martin
On 9/14/05, marc [EMAIL PROTECTED] wrote:
 
 My best guess is to edit /etc/apt/sources.list, and apt-get update, apt-
 get dist-upgrade, but can anyone point to a good description of the
 process, please.

^^^ pointing to description of the process ^^^

This is out of date?
http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html
It was updated a month ago.

 In addition, is there a written example of adding a package from sid?

Be sure sid is in apt.sources, then...
apt-get install package
That should get sid if you have no /etc/apt/preferences

or the more sureshot way
apt-get -t distribution install package

Look at 'Keeping a mixed system' in the doc mentioned above, or search
for apt preferences, or apt-pinning to keep control of things

-- 
Chris Martin
Web Developer
Open Source  Web Standards Advocate
http://www.chriscodes.com/



Re: How do you move to testing/etch?

2005-09-14 Thread Joseph Haig
--- marc [EMAIL PROTECTED] wrote:

 Hi,
 
 I've scoured the archives and docs, and googled the globe, but I
 cannot 
 find an explanation for safely moving - as safe as it can be - from 
 stable/sarge to testing/etch.
 
 The Debian Reference has chapter 5, 'Upgrading a distribution to
 stable,
 testing, or unstable', but it is non-generic and very much out of
 date - 
 as well as stating, After properly setting up /etc/apt/sources.list
 and 
 /etc/apt/preferences as described above you can begin the upgrade., 
 without actually saying what needs to be done.
 
 My best guess is to edit /etc/apt/sources.list, and apt-get update,
 apt-
 get dist-upgrade, but can anyone point to a good description of the 
 process, please.
 

I am by no means an expert, but I believe that your 'best guess' is all
that is needed - it works for me, at least.  So in summary, edit
/etc/apt/sources.list, replacing sarge or stable in each line with etch
or testing and then execute the following:

$ apt-get update
$ apt-get dist-upgrade


The start of my sources.list file looks like this:

deb http://ftp.uk.debian.org/debian/ testing main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ testing main non-free contrib

deb http://the.earth.li/debian-secure-testing testing/security-updates
main contrib non-free
deb-src http://the.earth.li/debian-secure-testing
testing/security-updates main contrib non-free

deb http://security.debian.org/ testing/updates main contrib non-free

I'm not sure I really need the last line, but it doesn't seem to do any
harm.  I think it is only there because I originally installed sarge
and then upgraded to testing, which didn't have security updates at
that time.

 In addition, is there a written example of adding a package from sid?
 

I don't know about this.  My only experience with sid is accidentally
installing it instead of testing, and then finding that nothing worked.

Hope this helps,

Joe





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]