Skip to content

Instantly share code, notes, and snippets.

@earentir
earentir / gist:aa2b0f96807541b8b3dc2639b1084ba9
Created May 2, 2024 20:26
Check what is using libssl (or anyother lib)
lsof | grep libssl | awk ‘{print $1}’ | sort | uniq
## 2days
journalctl --vacuum-time=2d
##500mb
journalctl --vacuum-size=500M
## make sure its down
wsl --shutdown
## export for backup
wsl --export Fedora S:\Backup\wsl-fedora40-compact.vhdx
## make sure its not mounted by the OS
Dismount-DiskImage -ImagePath 'C:\distros\Fedora\ext4.vhdx'
## make sure its not sparse
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=40
## Tell DNF no reboots are needed ever
export DNF_SYSTEM_UPGRADE_NO_REBOOT=1
## triger update
sudo -E dnf system-upgrade reboot
@earentir
earentir / upgradeFedora.sh
Created May 2, 2024 19:52
upgradeFedora.sh
#!/bin/bash
set -e
# Make sure DNF is installed
if ! command -v dnf &> /dev/null; then
echo "dnf could not be found. Please install dnf first."
exit
fi
### Keybase proof
I hereby claim:
* I am earentir on github.
* I am earentir (https://keybase.io/earentir) on keybase.
* I have a public key whose fingerprint is 2041 9E62 779C 192D 21E9 7934 0A0A 61AA CE30 ACFF
To claim this, I am signing this object: