Friday, May 10, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 452  / 2 Years ago, tue, may 17, 2022, 8:48:42

I'm currently on debian wheezy and I want to install Ubuntu. I'm on a slow broadband connection and I do not want to download all the packages again that I installed on the debian installation. Is there any way around so that the new Ubuntu installation installs/clones the previous package files of the debian installation?


More From » package-management

 Answers
2

On the old installation run the following command:



sudo apt-get install dpkg-repack fakeroot
&& sudo mkdir ~/dpkg-repack; cd ~/dpkg-repack && sudo fakeroot -u dpkg-repack dpkg --get-selections | grep install | cut -f1



that will put all packages into a folder in your home folder called "dpkg-repack". Copy that to the home folder on your new installation and run



sudo dpkg -i *.deb



to install every one that is compatible, then just update the packages normally to resolve incompatibilities. Very few applications are actually recoded for the new releases, @syfluqs, so the two or three out of over 300 are just maybe a couple of drivers or one or two core applications that are installed anyway during normal installation, and are thus not downgraded to the old version


[#24276] Wednesday, May 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ardtry

Total Points: 254
Total Questions: 99
Total Answers: 114

Location: Finland
Member since Fri, Oct 21, 2022
2 Years ago
ardtry questions
;