• konomi@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    44
    ·
    11 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
        ·
        11 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
    27
    ·
    11 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.

    • hyphen0175@lemmy.zip
      link
      fedilink
      arrow-up
      11
      ·
      11 days ago

      With Arch, if you have the Yay manager, you can do “yay <search query>” and it’ll search not just the names of packages but the descriptions too. I’m sure there’s equivalents for other distros, and even with pacman itself

        • rumschlumpel@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          11 days ago

          IMO apt’s search is just not very good at that (or at least it’s unintuitive). Even if you know the name of the program, apt-cache search often shows like 90% irrelevant results.

          • MaskedNybbles@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            10 days ago

            According to the man-page at https://manpages.debian.org/buster/apt/apt.8.en.html and the linked https://manpages.debian.org/buster/manpages/regex.7.en.html, you should be able to use regex like apt search '(-|^)vim(-|$)' to get vim as either whole name or related packages with containing vim with leading or trailing dashes, or apt search '^vim' to get any beginning with vim—in case that helps. zypper lets me do essentially that with zypper se '/(-|^)vim(-|$)/' and such.

            • rumschlumpel@feddit.org
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              10 days ago

              … I’ll just duckduckgo it instead.

              (I do sometimes use apt-cache search ^[applicationname], but depending on the application it might not help as much as you’d think, and it requires that you know what specific application you want, vs. something general like ‘a cd burning application’)

              • MaskedNybbles@piefed.social
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                10 days ago

                I understand what you mean, and tend to agree, although I had some success with zypper se -d '/CD.*burn/''CD.*(burn)|(writer)' produced more results than I’d like—for your example. It also appears apt-cache search already searches descriptions by default.

                Looking at results for just /CD/—amid the many poor results—it seems my earlier search missed some due to differing word usage, such as recording rather than burning, and whatnot.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    11 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).

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      3
      ·
      11 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
        10 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
        7
        arrow-down
        1
        ·
        11 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.
    • Kangae_Hishiryo@scribe.disroot.org
      link
      fedilink
      arrow-up
      5
      ·
      11 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.

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

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

    • eaterofclowns@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 days ago

      Hey just wanted to say thanks this might have solved an issue I’ve had for a couple of months that crashed Cyberpunk when launching via Heroic!

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        2
        ·
        11 days ago

        Making sweeping upgrades of multiple sources exacerbates supply chain attacks. Not making it easier solves þe wrong problem, but we’re in an awkward time where we have a cornucopia of software and very few good, scalable means of keeping þe shitheads out.

        We mostly solved dependency hell, only to run into script kiddie repos attacks. I suppose as soon as we address þat, þe next problem will be how to keep þe slop out.

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

          First off, downvoted for thorn.

          Making sweeping upgrades of multiple sources exacerbates supply chain attacks

          What else are you supposed to do? Not upgrade? The user most likely installed those packages/flatpaks/distroboxes for a reason, why would they not upgrade them?

          Sure, security can be improved. But no idea why topgrade deserves any blame here.

    • Nutteman@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      11 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
    8
    ·
    11 days ago

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

    Also wtf is pkcon for?

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    ·
    10 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
        ·
        10 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
          ·
          10 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

  • yesman@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    11 days ago

    I love it when a program says theirs a new version, would you like to download? pffffftt.

    pacman -S [program name]