question about reinstall using dpkg
I read that using dkpg would make a reinstall easier so I created a install list with
~$ sudo dpkg --get-selection > old-list.txt
Upon (physically) rebuilding my system I loaded 12.04 LTS and ran that command again (into new-list.txt) so I could compare what was going to be added. Now, old-list.txt had entries like
xserver-
whereas new-list.txt has
xserver-
Is it allright to now run
~$ sudo dpkg --set-selections < old-list.txt
or will I be getting old modules installed over new modules?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
You will get the packages at the current version in the repo if they exist
Revision history for this message
|
#2 |
I am sorry to have to disagree with you, but that is not what happened.
What I have now is not a system with all the extras from the dpkg-list, but something I don't understand how or why it is different. Being relatively inexperienced on Linux, I fear my chances of figuring out what to do now are not good so I am just going to take the easy way out and do a reinstall. After that I plan to a diff of the two configurations and let the system update just those that I recognize as being the extras I want.
IMO what should be done now is a rethink of this dpkg selections thing, but I have neither the time nor the experience to contribute. If this thread expires then so be it.
Revision history for this message
|
#3 |
The packages that are not available simply will not be installable. If you run :
sudo apt-get update
On the second system then the known available package lists will be the same (unless you forget to add PPAs from the first system)
Revision history for this message
|
#4 |
You could even tell apt-get to download the deb files for every package you have installed and transfer those (assuming that PPAs are enabled etc if you added some)
Revision history for this message
|
#5 |
There is a specific difference between a 12.04.2 Ubuntu system that has been upgraded from a 12.04.0 installation and a 12.04.2 Ubuntu system that has been created by a new installation from 12.04.2 media.
The upgraded system will have a 3.2 series kernel and the 12.04 X.org stack.
The new-installed system will have a 3.5 series kernel and the 12.10 X.org stack.
For details see https:/
Apparently you are seeing this difference. I do not think that the dpkg set-selection would cause that older packages are installed over the newer ones, because there are higher release numbers with all the newer ones.
Revision history for this message
|
#6 |
What I did was
(I forgot to note where I found the instructions)
on the old system (being LTS 12.04)
sudo dpkg --get-selections > old-list.txt
on the new system (being LTS 12.04.02)
sudo add-apt-repository ...
sudo dpkg --get-selections > tmp-list.txt
sudo dpkg --clear-selections
sudo dpkg --set-selections < old-list.txt
sudo apt-get autoremove
sudo apt-get dselect-upgrade
sudo dpkg --get-selections > new-list.txt
diff -y --suppress-
The diff is below.
Anyway, the result was such that I felt out of my depth and because I was running out of time I simply did a reinstall.
-------
> compiz-
> compiz-
> compiz-plugins install
> compiz-
> compiz-plugins-main install
> compizconfig-
> gambas2-gb-form install
> gambas2-gb-gtk install
> gambas2-gb-gtk-ext install
> gambas2-gb-gui install
> gambas2-gb-qt install
> gambas2-gb-settings install
> gambas2-runtime install
> gedit-plugins install
> gir1.2-
> grub-customizer install
gstreamer0.
> gtk2-engines-pixbuf install
> hwinfo install
> indicator-multiload install
> indicator-sensors install
> indicator-weather install
libdrm-nouveau2 install | libdrm-nouveau2 deinstall
libgl1-
libgl1-
libglapi-
> libgl1-
> libglade2-0 install
> libglapi-mesa install
> libglapi-
> libgtkmm-2.4-1c2a install
> libhal1 install
> libhd16 install
> libidl-common install
> libidl0 install
libllvm3.1 install | libllvm3.0 install
> libllvm3.1 deinstall
libopenspc0 install | libopenspc0 deinstall
> liborbit2 install
> libqt3-mt install
> libreadline6-dev install
libstlport4.6ldbl install | libstlport4.6ldbl deinstall
> libtinfo-dev install
> libutouch-evemu1 install
> libutouch-frame1 install
> libutouch-geis1 install
> libutouch-grail1 install
libxatracker1-
> libxatracker1-
libxrandr-ltsq2 install | libxrandr-ltsq2 deinstall
linux-generic-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
> linux-headers-
> linux-headers-
> linux-headers-
> linux-headers-
> linux-headers-
> linux-headers-
> linux-headers-
> linux-headers-
linux-headers-
linux-image-
linux-image-
linux-image-
> linux-image-
> linux-image-
> linux-image-
> linux-image-
> linux-image-
> linux-image-generic install
> myunity install
nvidia-
nvidia-
> nvidia-settings install
> nvidia-
> python-central install
> python-compizconfig install
> python-glade2 install
> python-pywapi install
> python-support install
x11-xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
> xserver-
> xserver-
> xserver-
> xserver-
> xserver-
> xserver-
Revision history for this message
|
#7 |
All the linux-* and xserver-* entries are explained by the LTS-enablement-
Where all the other differences were stemming from, I do not know for sure, the easiest explanation would be that the installation of some additional packages on the older system (maybe hwinfo) has pulled them in as dependencies. Maybe the log of the dselect-upgrade would have given hints as to what packages were installed and deinstalled, and why.
If because of the re-installation there is nothing to be done any more with that question, please mark it as solved.
Revision history for this message
|
#8 |
Thanks Manfred Hampl, that solved my question.