This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Happy camper wants to clone software info, repos and keys.

Tags: None
(comma "," separated)
globetrotterdk
Registered Member
Posts
27
Karma
0
OS
I am extremely happy with KDE Neon running on my laptop. I have spent a fair amount of time trying to keep the system as KDE vanilla as possible, with all of my programs KDE based and compatible with KDE Plasma 5. As a KDE newbie, I would like to transfer all of my software installation info over to my desktop computer after I install KDE Neon on it. I have learned that I can use the 'apt-clone' tool to transfer all info about my installed software into an apt-clone.tar.gz file that I can transfer to my new desktop system. What can I do to transfer custom PPA info and their keys over to the new system? Both computers use the software for the same platform, so that shouldn't be any problem.

Any ideas?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

There are some options you could use:
clone the entire partition/disk and use it in your desktop machine (has to be the same architecture)
OR
save sources:
Code: Select all
find /etc/apt/sources.list* -type f -name '*.list' -exec bash -c 'echo -e "\n## $1 ";grep "^[[:space:]]*[^#[:space:]]" ${1}' _ {} \; > sources.list.save
to save your sources to the file sources.list.save. Have a look at it to know what you are doing and do not trust copy&paste :)

save package states:
Code: Select all
apt-mark showauto > package-states-auto
apt-mark showmanual > package-states-manual  #manual installes packages


save installed packages:
Code: Select all
dpkg --get-selections  | awk '!/deinstall|purge|hold/ {print $1}' > packages.list.save


save keys (keyring):
Code: Select all
sudo cp /etc/apt/trusted.gpg trusted-keys.gpg  #manual keys in keyring
sudo cp -R /etc/apt/trusted.gpg.d trusted.gpg.d.save #folder with installed keyrings


on target system:
Code: Select all
sudo apt-key add trusted-keys.gpg #copy folder if needed too!!!
sudo cp sources.list.save /etc/apt/sources.list
sudo apt update
xargs -a "packages.list.save" sudo apt-get install
xargs -a "package-states-auto" sudo apt-mark auto
xargs -a "package-states-manual" sudo apt-mark manual


If you're able to read german, theres a wiki on ubuntuusers.de showing the entire process and a lot of informations.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]