Phriction PureOS Wiki General Recommendations Copying Applications From An Old To A New Librem History Version 1 vs 2
Version 1 vs 2
Version 1 vs 2
Edits
Edits
- Edit by todd, Version 2
- Nov 30 2017 09:04
- ·Updating to individual steps since apt-clone seems to be Debian specific
- Edit by todd, Version 1
- Nov 30 2017 08:02
- ·Initial draft of steps to copy application packages from an old computer to a new computer
Original Change | Next Change » |
Edit Older Version 1... | 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.
=On 'old' Computer=
==Setup application to clone packages==
Install the `apt-clone` package
```
sudo apt install apt-clone
```
==Create the package list==
Change to a temporary directory
```
cd /tmp
```
Run `apt-clone` to clone the package list
```
apt-clone clone librem-13v1
```
This creates a `librem-13v1.apt-clone.tar.gz` in /tmp on the 'old' machine
==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=
==Setup application to restore/install packages==
```
sudo apt install apt-clone
```
==Copy over the 'old' computer clone file==
```
scp <user>@<ip-address>:/tmp/librem-13v1.apt-clone.tar.gz /tmp
```
In my case it was:
```
scp todd@192.168.1.182:/tmp/librem-13v1.apt-clone.tar.gz /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 apt-clone restore librem-13v1.apt-clone.tar.gz
```
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=
==Setup application to clone packages==
Install the `apt-clone` package
```
sudo apt install apt-clone
```
==Create the package list==
Change to a temporary directory
```
cd /tmp
```
Run `apt-clone` to clone the package dpkg --get-selections > /tmp/selections.list
```
apt-clone clone librem-13v1apt-mark showauto > /tmp/auto.list
```
This creates a `librem-13v1.apt-clone.tar.gz` in /tmp on the 'old' machine
==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=
==Setup application to restore/install packages==
```
sudo apt install apt-clone
```
==Copy over the 'old' computer clone files==
```
scp <user>@<ip-address>:/tmp/librem-13v1.apt-clone.tar.gz*.list /tmp
```
In my case it was:
```
scp todd@192.168.1.182:/tmp/librem-13v1.apt-clone.tar.gz*.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 apt-clone restore librem-13v1.apt-clone.tar.gz/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
```