brain/src/ops/gnulinux/debian.md

68 lines
851 B
Markdown
Raw Normal View History

2019-07-08 09:05:14 +00:00
# Debian
## Upgrade to latest stable
Enure backups !
### Ensure everything is up to date
```shell
2019-07-08 13:17:50 +00:00
apt update
apt upgrade
apt dist-upgrade
2019-07-08 09:05:14 +00:00
```
### Check package db consistency
```shell
dpkg -C
```
### Check hold packages
Hold packages will not be upgraded, ensure there is no deps shit
```shell
apt-mark showhold
```
If there is anything, check with `dpkg --audit`
### Update source list
Check
```shell
sed s/$OLDSTABLE/$STABLE/g /etc/apt/source.list
# for exemple
sed s/stretch/buster/g /etc/apt/source.list
```
Is it's ok, go
```shell
sed -i s/stretch/buster/g /etc/apt/source.list
```
Do not forget stuff in source.list.d
```shell
find /etc/apt/sources.list.d/ -type f -exec sed -i s/stretch/buster/g {} \;
```
### Simulate
```shell
apt update
2019-07-08 13:17:50 +00:00
apt list --upgradable
2019-07-08 09:05:14 +00:00
```
### Go
```shell
2019-07-08 13:17:50 +00:00
apt upgrade
apt dist-upgrade
2019-07-08 09:05:14 +00:00
```
Enjoy !