fix(install-script): FreeBSD fixes and more

- Alias: FreeBSD: pkg update and autoremove aliases added
- Install: GhostBSD: Use FreeBSD commands to do the installation
- Install: FreeBSD: start dbus
- Install: Fedora: improve dnf install speed by limiting minimum
  download rate & decreasing timeout
- Install: Brew: Don't install brew package if OS has installed the package
- Install: Brew: sccache for Rust
- Install: OS: More packages moved from brew -> OS. Those are available
  across FreeBSD & Fedora
This commit is contained in:
Pratik Tripathy
2025-01-06 17:39:05 +05:30
parent 35b0e34cfd
commit 27b1f7e9ed
7 changed files with 50 additions and 22 deletions

View File

@@ -21,6 +21,8 @@ up(){
update_command="sudo pkcon refresh && sudo pkcon update && sudo apt dist-upgrade && sudo apt autoremove"
elif command -v apt-get > /dev/null 2>&1; then
update_command="sudo apt-get update && sudo apt-get upgrade && sudo apt dist-upgrade && sudo apt autoremove"
elif command -v pkg > /dev/null 2>&1; then
update_command="sudo pkg update && sudo pkg upgrade && sudo pkg autoremove"
fi
eval "$update_command"
@@ -38,6 +40,8 @@ autorem(){
remove_command="sudo apt autoremove"
elif command -v dnf > /dev/null 2>&1; then
remove_command="sudo dnf autoremove"
elif command -v pkg > /dev/null 2>&1; then
remove_command="sudo pkg autoremove"
fi
eval "$remove_command"