brain/src/ops/gnulinux/debian.md

74 lines
893 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
2019-07-08 13:18:09 +00:00
sed s/$OLDSTABLE/$STABLE/g /etc/apt/sources.list
2019-07-08 09:05:14 +00:00
# for exemple
2019-07-08 13:18:09 +00:00
sed s/stretch/buster/g /etc/apt/sources.list
2019-07-08 09:05:14 +00:00
```
Is it's ok, go
```shell
2019-07-08 13:18:09 +00:00
sed -i s/stretch/buster/g /etc/apt/sources.list
2019-07-08 09:05:14 +00:00
```
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
```
2019-07-08 13:18:25 +00:00
### Clean
```shell
apt autoclean
```
2019-07-08 09:05:14 +00:00
Enjoy !