you are viewing a single comment's thread
view the rest of the comments
[–] 21 points 9 months ago (11 children)

I think you can do apt upgrade --update now.

  • source
  • parent
  • hideshow 11 child comments
  • [–] 6 points 9 months ago* (5 children)

    WHAT. Does this do both sudo apt update and sudo apt upgrade?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 5 points 9 months ago (2 children)
  • [–] 1 point 9 months ago* (1 child)

    Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this:

    # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y
    
    
  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 9 months ago

    I can't really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them.

    Eg, if you run apt --update --autoremove upgrade -y once a day you'll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade.

    To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to... but not quite everything. 🤷

  • source
  • parent
  • [–] 4 points 9 months ago* (last edited 9 months ago) (3 children)
  • [–] 2 points 9 months ago (2 children)

    Incredible that it's not written everywhere, I always wanted to use something like this without the " update && upgrade" which looks like is not working oftentimes

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 9 months ago (1 child)

    Is it really not written? I saw apt upgrade --update and knew the standard shortcut would be -u, but that didn't work so I tried -U, bingo bongo off I went.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 9 months ago

    It am quite sure in the manual, but if you just look on the interwebz tutorials every command line just writes the full shebang. So you don't look up the manual and get flabbergasted when you see this post. btw: if you are able to guess "what the standard shortcut would be", you are a wizard Harry 🥳

  • source
  • parent