Phriction PureOS Wiki General Recommendations Copying Applications From An Old To A New Librem History Version 2 vs 4
Version 2 vs 4
Version 2 vs 4
Edits
Edits
- Delete by JC, Version 4
- Nov 8 2024 01:02
- Edit by todd, Version 2
- Nov 30 2017 09:04
- ·Updating to individual steps since apt-clone seems to be Debian specific
Edit Older Version 2... |
Content Changes
Content Changes
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 < auto.list
```
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 < auto.list
```