Examples could be things like specific configuration defaults or general decision-making in leadership.

What would you change?

  • Samueru@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    10 months ago

    Oh I totally agree with that. But I don’t think the regular a new user should be using CLI tools to install packages. There are plenty of GUI tools that should be doing that for you instead.

    And if they did, it should be very simplified with a wrapper script like in the example above, iirc the common command update-grub is a wrapper script that simplifies it, it is a shame this isn’t more common with other tasks.

    This could be even standardized, like regardless of the distro if you type installpkg vim, the installpkg script would do something like this that will run it thru the most popular packages managers to do the simple operation:

    # Install with 'pacman' (if available)
    if command -v pacman >/dev/null 2>&1; then
        sudo pacman -S $@ || exit 1
    fi
    
    # Install with 'apt' (if available)
    if command -v apt >/dev/null 2>&1; then
        sudo apt install $@ || exit 1
    fi
    
    # Install with 'dnf' (if available)
    if command -v dnf >/dev/null 2>&1; then
        sudo dnf install $@ || exit 1
    fi
    
    echo "No package manager found"