Re: From Squeeze to Wheezy: An upgrade problem

2013-06-22 Thread Andrei POPESCU
On Vi, 21 iun 13, 20:55:15, Ralf Mardorf wrote:
 On Fri, 2013-06-21 at 21:02 +0300, Andrei POPESCU wrote:
  On Vi, 21 iun 13, 16:52:49, Ralf Mardorf wrote:
   On Fri, 2013-06-21 at 17:02 +0300, Andrei POPESCU wrote:
aptitude install $(cat non-Debian.pkgs)
   
   So the OP will keep some packages as they are, without updating? 
  
  Package names don't change too often between releases, only versions do.
 
 Good thought, but it wasn't what I was thinking about. My guess was
 regarding to self build packages, that aren't available by any
 repository. Some might still work, if the OP would keep them, but others
 might miss needed dependencies.

The OP did not mention self built packages.
 
 Upstream might switch from one lib to another, the names are still the
 same, but a package might not need lib A anymore, but does need lib B
 nowadays. And for sure, a package perhaps need version = X and a new
 version is  X.

This is generally not a big issue for non-Debian packages, because they 
are statically linked and/or only depend on libraries that are in Debian 
(i.e. they seldom provide their own libraries).

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: From Squeeze to Wheezy: An upgrade problem

2013-06-21 Thread Lars Noodén
On 06/21/2013 01:04 AM, John wrote:
 1. #dpkg --get-selections \* | grep -e install -e hold | grep -v
 deinstall  ~/my-selections-$(date +%Y%m%d)

I'd go with the raw output of dpkg:

$ dpkg --get-selections  ~/my-selections-$(date +'%F')

Sometimes it is important to know which packages have been removed.

Regards,
/Lars


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51c42203.4080...@gmail.com



Re: From Squeeze to Wheezy: An upgrade problem

2013-06-21 Thread Andrei POPESCU
On Jo, 20 iun 13, 00:42:56, Bill.M wrote:
 
 I'm thinking that what I need to generate is a diff list of packages
 installed on my current Squeeze that aren't in the standard Squeeze
 and then feed that into apt on Wheezy. But how to do that? How to
 generate the Squeeze list? I haven't located any advice.

Let me be the dissenting voice and suggest something not involving
dpkg --get-selections.

0. Run:

aptitude --display-format '%p' search '?not(?origin(Debian))?installed'  
non-Debian.pkgs

The non-Debian.pkgs will now contain a list of packages that are *not* 
from Debian.

Depending on the amount of packages I would start researching where they 
come from (apt-cache policy package) and try to replace with Debian 
alternatives. Also look if the provider has versions available for 
wheezy.

1. Install a fresh wheezy.
2. migrate the relevant sources.lists entries (i.e. replace squeeze with 
wheezy wherever possible) or download the wheezy versions of non-Debian 
packages.
3. Install downloaded packages with dpkg -i (but you should know that) 
and all other packages with

aptitude install $(cat non-Debian.pkgs)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: From Squeeze to Wheezy: An upgrade problem

2013-06-21 Thread Ralf Mardorf
On Fri, 2013-06-21 at 17:02 +0300, Andrei POPESCU wrote:
 aptitude install $(cat non-Debian.pkgs)

So the OP will keep some packages as they are, without updating? Ok, but
the OP should be aware, that dependencies might be broken and in the end
the above command + updating Debian packages doesn't result in anything
different than dpkg --set-selections  list.txt does ;).


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371826369.691.111.camel@archlinux



Re: From Squeeze to Wheezy: An upgrade problem

2013-06-21 Thread Andrei POPESCU
On Vi, 21 iun 13, 16:52:49, Ralf Mardorf wrote:
 On Fri, 2013-06-21 at 17:02 +0300, Andrei POPESCU wrote:
  aptitude install $(cat non-Debian.pkgs)
 
 So the OP will keep some packages as they are, without updating? 

Package names don't change too often between releases, only versions do.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: From Squeeze to Wheezy: An upgrade problem

2013-06-21 Thread Ralf Mardorf
On Fri, 2013-06-21 at 21:02 +0300, Andrei POPESCU wrote:
 On Vi, 21 iun 13, 16:52:49, Ralf Mardorf wrote:
  On Fri, 2013-06-21 at 17:02 +0300, Andrei POPESCU wrote:
   aptitude install $(cat non-Debian.pkgs)
  
  So the OP will keep some packages as they are, without updating? 
 
 Package names don't change too often between releases, only versions do.

Good thought, but it wasn't what I was thinking about. My guess was
regarding to self build packages, that aren't available by any
repository. Some might still work, if the OP would keep them, but others
might miss needed dependencies.

I agree that package names usually don't change that often, resp. for
the distro I prefer at the moment, there are relatively often changes
for the package names, so it's not completely unusual.

Upstream might switch from one lib to another, the names are still the
same, but a package might not need lib A anymore, but does need lib B
nowadays. And for sure, a package perhaps need version = X and a new
version is  X.

Regards,
Ralf


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371840915.691.161.camel@archlinux



From Squeeze to Wheezy: An upgrade problem

2013-06-20 Thread Bill.M

Hi folks,

I've been using Squeeze (Lenny, Etch, Sarge, Woody etc) for some time 
and have added many individual package installs beyond the standard, out 
of the box, distros over the years.


Now I'm installing onto a new machine and would like to migrate as much 
of my old system onto the new machine as I can. What I mean here is that 
I'd like to be able to install the Wheezy version of most of those 
additional packages on the new system in addition to an out of the box 
fresh install of Wheezy. 80 or 90 percent would be excellent.


I'm thinking that what I need to generate is a diff list of packages 
installed on my current Squeeze that aren't in the standard Squeeze and 
then feed that into apt on Wheezy. But how to do that? How to generate 
the Squeeze list? I haven't located any advice.


Any thoughts? Is this even possible?

b.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51c2b280.8090...@uniserve.com



Re: From Squeeze to Wheezy: An upgrade problem

2013-06-20 Thread Ralf Mardorf
Using apt:
--

Create a backup of what packages are currently installed:

sudo dpkg --get-selections  list.txt

Then (on another system) restore installations from that list:

sudo dpkg --clear-selections
sudo dpkg --set-selections  list.txt

To get rid of stale packages

sudo apt-get autoremove

To get installed like at backup time

sudo apt-get dselect-upgrade -
http://askubuntu.com/questions/17823/how-to-list-all-installed-packages



Using Synaptic:
---

Once Synaptic is running, select Save Markings from the drop-down File
menu. You will be prompted for a location. Obviously, save to a USB
stick (and make sure too that you check the box marked Save full state,
not only changes otherwise you may create an empty file!).

Installing all that software is simply a matter of opening Synaptic in
the other machine(s) and this time selecting Read markings from the File
drop-down menu and selecting that backup and leave Synaptic to do its
work. Of course, some of the packages may have been installed via a PPA
and that means you'd be well advised to also backup your sources files,
which contains a list of all enabled repositories including the PPAs.
Synaptic does not have a facility for doing this, so just copy it (as
root) with this simple command:

cp /etc/apt/sources.list.d ~/sources.list.d.backup -
http://www.freesoftwaremagazine.com/articles/using_synaptic_package_manager_clone_installed_software_another_computer



Without a tool:
---

Restore a backup of an already existing Debian and upgrade it to the new
version.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371716021.6069.54.camel@archlinux



Re: From Squeeze to Wheezy: An upgrade problem

2013-06-20 Thread Joe
On Thu, 20 Jun 2013 00:42:56 -0700
Bill.M bi...@uniserve.com wrote:

 Hi folks,
 
 I've been using Squeeze (Lenny, Etch, Sarge, Woody etc) for some time 
 and have added many individual package installs beyond the standard,
 out of the box, distros over the years.
 
 Now I'm installing onto a new machine and would like to migrate as
 much of my old system onto the new machine as I can. What I mean here
 is that I'd like to be able to install the Wheezy version of most of
 those additional packages on the new system in addition to an out of
 the box fresh install of Wheezy. 80 or 90 percent would be excellent.
 
 I'm thinking that what I need to generate is a diff list of packages 
 installed on my current Squeeze that aren't in the standard Squeeze
 and then feed that into apt on Wheezy. But how to do that? How to
 generate the Squeeze list? I haven't located any advice.
 
 Any thoughts? Is this even possible?
 

I wouldn't have thought so. I would tackle this by cloning your
squeeze, as far as possible, to the new box and then upgrading. At
least some of the issues between versions are dealt with in the
upgrade, whereas they wouldn't be any other way. A new installation
will differ significantly from an upgraded version, because of the 'if
I was going there, sure I wouldn't be starting from here' effect.

If you're going up in hardware bit numbers, I found the easiest way to
move an installation was using dpgk --get-selections. The 32-64 bit
issues get in the way if you try something more direct. 

There will be lots of messy details. Good luck.

-- 
Joe


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130620092023.4ba6b...@jretrading.com



Re: From Squeeze to Wheezy: An upgrade problem

2013-06-20 Thread 黃健毅
Might want to add any additional third-party repositories and run

sudo apt-get update

On 20 June 2013 09:13, Ralf Mardorf ralf.mard...@alice-dsl.net wrote:
 Using apt:
 --

 Create a backup of what packages are currently installed:

 sudo dpkg --get-selections  list.txt

 Then (on another system) restore installations from that list:

 sudo dpkg --clear-selections
 sudo dpkg --set-selections  list.txt

 To get rid of stale packages

 sudo apt-get autoremove

 To get installed like at backup time

 sudo apt-get dselect-upgrade -
 http://askubuntu.com/questions/17823/how-to-list-all-installed-packages



 Using Synaptic:
 ---

 Once Synaptic is running, select Save Markings from the drop-down File
 menu. You will be prompted for a location. Obviously, save to a USB
 stick (and make sure too that you check the box marked Save full state,
 not only changes otherwise you may create an empty file!).

 Installing all that software is simply a matter of opening Synaptic in
 the other machine(s) and this time selecting Read markings from the File
 drop-down menu and selecting that backup and leave Synaptic to do its
 work. Of course, some of the packages may have been installed via a PPA
 and that means you'd be well advised to also backup your sources files,
 which contains a list of all enabled repositories including the PPAs.
 Synaptic does not have a facility for doing this, so just copy it (as
 root) with this simple command:

 cp /etc/apt/sources.list.d ~/sources.list.d.backup -
 http://www.freesoftwaremagazine.com/articles/using_synaptic_package_manager_clone_installed_software_another_computer



 Without a tool:
 ---

 Restore a backup of an already existing Debian and upgrade it to the new
 version.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1371716021.6069.54.camel@archlinux



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAG0rmd6NHiG_F0cCpj=wor9jlmsjmtymxdy4mfq4ylz1mrn...@mail.gmail.com



Re: From Squeeze to Wheezy: An upgrade problem

2013-06-20 Thread John
On 20/06/13, Bill.M (bi...@uniserve.com) wrote:

 Date: Thu, 20 Jun 2013 00:42:56 -0700
 From: Bill.M bi...@uniserve.com
 To: Debian User ML debian-user@lists.debian.org
 Subject: From Squeeze to Wheezy: An upgrade problem
 X-Spam-Status: No, score=-3.7 required=5.0
  tests=RCVD_IN_DNSWL_HI,RDNS_NONE, UNPARSEABLE_RELAY autolearn=ham
  version=3.3.2
 
 Hi folks,
 ...
 I'm thinking that what I need to generate is a diff list of packages
 installed on my current Squeeze that aren't in the standard Squeeze
 and then feed that into apt on Wheezy. But how to do that? How to
 generate the Squeeze list? I haven't located any advice.
 
 Any thoughts? Is this even possible?


1. #dpkg --get-selections \* | grep -e install -e hold | grep -v deinstall  
~/my-selections-$(date +%Y%m%d)
2. #dselect update
#dpkg --set-selections  my-selections-$whateverthedatewas
Maybe take a look at /var/lib/dpkg/status?
#apt-get -u dselect-upgrade
May need to
#dselect install

I didn't think any of this up, but copied it from smarter folks whose names I 
have forgotten.

-- 
johnrchamp...@wowway.com

GPG key 1024D/99421A63 2005-01-05
EE51 79E9 F244 D734 A012 1CEC 7813 9FE9 9942 1A63
gpg --keyserver subkeys.pgp.net --recv-keys 99421A63


signature.asc
Description: Digital signature