Page MenuHomePureOS Tracker

Copying Applications From An Old To A New Librem
Updated 2,531 Days AgoPublic

All GNU operating systems are very powerful, and PureOS is no exception. This brief how-to describes the steps for upgrading from a Librem 13v1 (with HDD) to a Librem13v2 (with a 2TB NVMe SSD), but the practice is the same if you ever want to re-install your installed applications list from an old computer to a new computer.

NOTE: apt-clone is an alternative method that works within Debian GNU/Linux, but not derivatives such as PureOS

On 'old' Computer

Create the package list

dpkg --get-selections > /tmp/selections.list
apt-mark showauto > /tmp/auto.list

Get the address of the 'old' machine

Settings -> Network -> Select Network Settings -> Note the IPv4 Address (e.g. 192.168.1.182)

On 'new' Computer

Copy over the 'old' computer clone files

scp <user>@<ip-address>:/tmp/*.list /tmp

In my case it was:

scp todd@192.168.1.182:/tmp/*.list /tmp

Update the package list before updating applications

sudo apt update

Upgrade to the latest base system first

sudo apt upgrade

Install all the packages

sudo /usr/lib/dpkg/methods/apt/update /var/lib/dpkg/
sudo dpkg --set-selections < /tmp/selections.list
sudo apt-get dselect-upgrade
sudo xargs apt-mark auto < /tmp/auto.list
Last Author
todd
Last Edited
Nov 30 2017, 09:10

Event Timeline

todd created this document.Nov 30 2017, 08:02
todd edited the content of this document. (Show Details)
todd edited the content of this document. (Show Details)Nov 30 2017, 09:04
todd edited the content of this document. (Show Details)Nov 30 2017, 09:10
mladen changed the edit policy from "All Users" to "Restricted Project (Project)".May 10 2018, 07:49