Created BSD (markdown)

Lauri Ojansivu 2023-02-09 07:00:57 +02:00
parent e08eb18cc1
commit f3d8c8cba2

49
BSD.md Normal file

@ -0,0 +1,49 @@
# Package managers for various OS
1. Edit script: `nano something.sh`
2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
3. Make executeable: `chmod +x *.sh`
## Ubuntu
update.sh
```
sudo apt update
sudo apt -y dist-upgrade
sudo snap refresh
flatpak update
```
clean.sh
```
sudo apt clean
sudo apt -y autoclean
sudo apt -y autoremove
```
install.sh
```
sudo apt -y install $1
```
uninstall.sh
```
sudo apt remove $1
# more dangerous, all configs and data: sudo apt --purge remove $1
```
## NetBSD
Before these, change to root:
```
su
```
update.sh
```
pkgin upgrade
```
install.sh
```
pkgin install $1
```
uninstall.sh
```
pkg_delete $1
```