Add Debian
This commit is contained in:
parent
08f42369f1
commit
204c16e0cf
3 changed files with 70 additions and 0 deletions
|
@ -20,6 +20,8 @@
|
|||
- [SVN](./dev/tools/svn.md)
|
||||
|
||||
- [Ops](./ops/main.md)
|
||||
- [GNU/Linux](./ops/gnulinux/main.md)
|
||||
- [Debian](./ops/gnulinux/debian.md)
|
||||
- [Shell Tips](./ops/shelltips.md)
|
||||
- [Tools](./ops/tools/main.md)
|
||||
- [Ansible](./ops/tools/ansible.md)
|
||||
|
|
67
src/ops/gnulinux/debian.md
Normal file
67
src/ops/gnulinux/debian.md
Normal file
|
@ -0,0 +1,67 @@
|
|||
# Debian
|
||||
|
||||
## Upgrade to latest stable
|
||||
|
||||
Enure backups !
|
||||
|
||||
### Ensure everything is up to date
|
||||
|
||||
```shell
|
||||
apt-get update
|
||||
apt-get upgrade
|
||||
apt-get dist-upgrade
|
||||
```
|
||||
|
||||
### 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
|
||||
apt --list upgradable
|
||||
```
|
||||
|
||||
### Go
|
||||
|
||||
```shell
|
||||
apt-get upgrade
|
||||
apt-get dist-upgrade
|
||||
```
|
||||
|
||||
Enjoy !
|
1
src/ops/gnulinux/main.md
Normal file
1
src/ops/gnulinux/main.md
Normal file
|
@ -0,0 +1 @@
|
|||
# GNU/Linux
|
Loading…
Reference in a new issue