• canaryWart@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    23 hours 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

    :::

  • konomi@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    47
    arrow-down
    1
    ·
    2 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
        ·
        2 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

  • tumbling4986@lemmy.ca
    link
    fedilink
    arrow-up
    26
    ·
    2 days ago

    Yes. At the beginning I preferred distro’s specifically with a graphical software manager. Now i force uninstall it and use terminal for anything.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    2 days ago

    There is nothing wrong with using your distro’s app center. Often it will save you extra steps by updating things like Flatpaks as well, if you use them (or Snaps, if you’re an insane person).

    • Disgruntled@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      Unless you use openSUSE Tumbleweed, right? Then it’s “sudo zypper dup”, from what I’ve heard.

    • Kangae_Hishiryo@scribe.disroot.org
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      I also like graphical frontends because there I can see screenshots of the software, because there’s a lot of software out there with really bad UI and UX.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      4
      ·
      2 days ago

      Flatpaks and snaps are two examples of deliverables with terribad integration and low SLSA scores. They should be considered toxic.

      • mholiv@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        edit-2
        2 days ago

        Snaps I agree just because there is no open source snap store and it’s impossible to set up a 3rd party store.

        Flatpaks though? They let people install packages with weird / rare / not available requirements on any distro. All open source with a really nice sandbox. I think flatpaks are great.

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

        Let’s look at the alternatives:

        • System packages: not viable for the majority of packages because the distro devs don’t have time to manually package everything
        • AppImage: even worse integration (like no desktop shortcuts on install). Developer has to guess what libraries need to be included and which ones are already installed by the user. No sandboxing. Probably worse SLSA scores.
        • AUR: even worse security. No sandboxing. Packages are often compromised by hackers.
    • naevaTheRat@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I use bazzite on my BC250 console but bazzite’s package management is horrible lmao.

      It’s good for something you install and never touch but not adequate for general purpose computing.

      Pacman is an amazing package manager, dnf is probably better but inertia has me prefer pacman. The rest suck

    • Nutteman@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      When I just want to go to bed and deal with the repercussions of my actions in the morning:

      yay --noconfirm && reboot
      
  • plateee@piefed.social
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    2 days ago

    Aren’t you supposed to do apt full-upgrade instead of apt upgrade?

    Also wtf is pkcon for?