• Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    9
    ·
    7 days ago

    I do both. If I know exactly what I want to install, I’ll install it from the terminal because it’s often more direct. If I go “I need an app that does thing, what’s available?”

      • Captain Aggravated@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        apt-search and dnf-search both exist. I have used both. I prefer a GUI for that because they’ll provide things like screenshots, no CLI tool does, neither to TUI tools like Aptitude.

        • naevaTheRat@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          6 days ago

          I wasn’t sure, the gui is nicer in some ways but defs less direct and given that you said “terminal is more direct” I thought you were using the gui because you hadn’t made some simple helper scripts for searching the database quickly

  • canaryWart@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago

    I use an fzf based script that queries for updates and lets me choose what to install.

    If you use xbps, or are just curious:

    ::: xu #!/bin/env sh

    self=“$(basename “$0”)”

    error() { printf ‘%s:’ “$self” >&2 # shellcheck disable=SC2068 printf ’ %s’ $@ >&2 printf ‘\n’ >&2 }

    fatal() { error “$@” exit 1 }

    if [ -x “$(command -v sk)” ]; then finder=sk elif [ -x “$(command -v fzf)” ]; then finder=fzf else echo “neither fzf or sk are installed” >&2 exit 1 fi

    tmp=“$(mktemp)” || fatal “couldn’t source bindings” grep ‘^export’ “$DOTFILES/.zshenv” | grep -E ‘FZF|SKIM’ >“$tmp” . “$tmp” rm “$tmp”

    shellcheck disable=SC2046

    choices=“$(xbps-install -nSu | cut -f1 -d’ ’ | sed ‘s/-[^-]*$//g’ | $finder | tr ‘\n’ ’ ')”

    [ -n “$choices” ] || exit

    guard=pkexec command -v “$guard” >/dev/null 2>/dev/null || guard=sudo

    shellcheck disable=SC2086

    while ! $guard xbps-install -Syu $choices; do :; done

    :::

    • KernelTale@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 days ago

      Cachy has a tray icon running the updates in terminal. It likely can be started from terminal as well and I think it was like octopy?

  • konomi@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    47
    arrow-down
    1
    ·
    7 days ago

    I’ll keep making Debian users aware that they can do it all in one command since Trixie.

    sudo apt --update --autoremove --with-new-pkgs upgrade
    
      • Successful_Try543@feddit.org
        link
        fedilink
        arrow-up
        6
        ·
        7 days ago

        Yes, it’s a command from apt-get that apt only passes through:

        –auto-remove, --autoremove
        If the command is either install or remove, then this option acts like running the autoremove command, removing unused dependency packages. Configuration Item: APT::Get::AutomaticRemove.

        –with-new-pkgs
        Allow installing new packages when used in conjunction with upgrade. This is useful if the update of an installed package requires new dependencies to be installed. Instead of holding the package back upgrade will upgrade the package and install the new dependencies. Note that upgrade with this option will never remove packages, only allow adding new ones. Configuration Item: APT::Get::Upgrade-Allow-New.

        -U, --update
        Run the update command before the specified command. This is supported for commands installing, removing, or upgrading packages such as install, remove, safe-upgrade, full-upgrade. This can be useful to ensure a command always installs the latest versions, or, in combination with the –snapshot option to make sure the snapshot is present when install is being run.

        https://manpages.debian.org/trixie/apt/apt-get.8.en.html