Announcement

Collapse
No announcement yet.

How-To - Painlessy update/upgrade Kubuntu.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How-To - Painlessy update/upgrade Kubuntu.

    Disclaimer: This reflects my personal preferences.
    Note: This pretty much applies to any *buntu/deb-based.

    "Anything to declare?" "Yeah. Don't use Discover" (AKA Software Center).
    What you may want to do instead is:
    In your /home, you have a file called .bashrc. Open with Kate.
    Ctrl-F and find "alias".
    Add a line in there:

    alias upd='sudo apt update && sudo apt full-upgrade -y'

    Save file, open konsole (F4 in Kate and Dolphin, btw) and type

    source .bashrc

    After that, you can just type upd, give it the pw, et voilà.
    You can do other things while it works, you'll see it uses little resources.
    You may want to eliminate the "-y" in case you want to confirm or abort the update if it looks too big - or something. Otherwise it's fire-and-forget.

    #2
    Just tried this out and it works fine. I've never used aliases before. Good tip, thanks.

    Comment


      #3
      You're welcome :·)
      I love aliases. Back in the '90s I used Linux with no GUI at all, it was all CLI, and - as you can imagine - some aliases were very useful.

      Keep in mind that:
      - you can list your aliases by typing alias.
      - If you use a lot of them , you can put them in ~/.bash_aliases instead, so you don't clog up your .bashrc too much. Your .bashrc should already have a line to read that file if it exists.
      - Before making an alias, it's a good idea to check the string doesn't already exist as a command, or it will "overwrite" that command.
      Type alias, and you'll see, for example, alias grep='grep --color=auto'.

      Comment

      Working...
      X