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

@@ -29,10 +29,14 @@ install_brew_packages() {
\#*) continue ;;
esac
# Check if the package exists in the Homebrew repository
# Check if package exists in brew repository and is not already installed on the system
if brew search "$brew_package" 2>/dev/null | grep -q "$brew_package"; then
echo "Available: $brew_package"
found_packages="$found_packages $brew_package"
if ! command -v "$brew_package" >/dev/null 2>&1; then
echo "Available: $brew_package"
found_packages="$found_packages $brew_package"
else
echo "Already installed: $brew_package"
fi
else
not_found_packages="$not_found_packages $brew_package"
echo "Unavailable: $brew_package"
@@ -59,7 +63,6 @@ main() {
input_file_check
install_brew
install_brew_packages
print_summary "Brew" "$not_found_packages"
}