Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Tibor ( tibor@pawb.social )  to Programmer Humor@lemmy.mlEnglish · 3 years ago

When you have to update the server

pawb.social

message-square
27
link
fedilink
209

When you have to update the server

pawb.social

Tibor ( tibor@pawb.social )  to Programmer Humor@lemmy.mlEnglish · 3 years ago
message-square
27
link
fedilink
alert-triangle
You must log in or # to comment.
  • gkd ( gkd@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    22
    ·
    3 years ago

    Try installing something from homebrew.

    Oh you just want to install this one package here? Ok but let’s update 60 other packages first. Don’t worry, it will only take about one minute. Per package.

    • 0x497a ( 497a@discuss.tchncs.de ) 
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 years ago

      Bruh have fun on x86_64 since you have to compile them all (at least I had to, I might have broken something)

      • navi ( navi@lemmy.tespia.org ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        I installed Mono on my M1 MBP last year and it took like four hours to compile 💀

    • worfamerryman ( worfamerryman@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 years ago

      When I was new to linux and got a raspberry pi 1. I was following some random guide to put retroarch on the pi. I did not know what I was doing, but it took at least 24 hours if not more.

      Years later I realized that the guide had me compiling it from source instead of just installing a precompiled package.

    • urda ( urda@lebowski.social ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Real talk I’ve been using this I’ve mashed together:

      update_brew() {
          bold=$(tput bold);
          normal=$(tput sgr0);
          brew --version &&
          echo "${bold} > brew update${normal}" &&
          brew update &&
          echo "${bold} > brew upgrade${normal}" &&
          brew upgrade &&
          echo "${bold} > brew autoremove${normal}" &&
          brew autoremove &&
          echo "${bold} > brew cleanup${normal}" &&
          brew cleanup &&
          echo "${bold} > brew doctor${normal}" &&
          brew doctor;
      }
      
    • pkulak ( pkulak@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Try Nix instead of Homebrew.

  • 0x497a ( 497a@discuss.tchncs.de ) 
    link
    fedilink
    English
    arrow-up
    10
    ·
    3 years ago

    One of the reasons I love pacman. A whole system update within a minute or two (depending on the particular system ofc)

    • alec ( alec@wirebase.org ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 years ago

      Do you use Arch perchance?

  • GizmoLion ( GizmoLion@kbin.social ) 
    link
    fedilink
    arrow-up
    7
    ·
    3 years ago

    Oops, missed a dash, so now you’ll have to come back and finish.

  • produnis ( produnis@discuss.tchncs.de ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 years ago

    pacman -Syyu

    …btw

    • Swiggles ( Swiggles@lemmy.blahaj.zone ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      3 years ago

      pacman -Syu

      Using -Syyu can cause a partial system upgrade if mirrors are out of sync. It leads to higher traffic for mirror owners and it is considered bad practice overall. There are just a few rare cases where it is useful at all.

      Forcing anything should always be a conscious decision and never the default.

    • manapropos ( manapropos@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 years ago

      I’m so lazy I alias “sudo pacman” to “p”

    • jsqribe ( jsqribe@feedly.j-cloud.uk ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 years ago

      yay -Syyu

      • produnis ( produnis@discuss.tchncs.de ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

  • LurkyTheHatMan ( LurkyTheHatMan@ttrpg.network ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 years ago

    sudo apt-get update -y && sudo apt-get dist-upgrade -y

    • rmuk ( rmuk@feddit.uk ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      && sudo halt -f

      It’s quittin’ time! See ya Monday!

  • DrM ( DrM@feddit.de ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 years ago

    Do this with a typo in sources.list and uninstall the complete system at once. Happened to me once, happened to me twice. 10/10 will happen again

  • PracticalParrot ( PracticalParrot@discuss.tchncs.de ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 years ago

    Is there a big reason to use apt-get instead of just apt? I don’t think I’ve ever used apt-get in years, always using just apt.

    • jape ( jape@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      8
      ·
      3 years ago

      It’s used for scripting. Apt specifically recommends against using it in scripts.

      • Zucca ( Zucca@sopuli.xyz ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        … wait?

        Used for scripting, but not recommended to be used in scripting?

        • __jov ( __jov@lemmy.ml ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 years ago

          apt-get is used in scripting.

          apt isnt recommended to be used in scripting.

  • Stabbywithsocks1 ( Stabbywithsocks1@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 years ago

    “Knock it off Julian, I know how good my coffee is, I’m the one who buys it. When Bonnie goes shopping, she buys shit. I buy the more expensive coffee because when I drink it, I want to taste it. But you know what’s on my mind right now? It ain’t the coffee in my kitchen…”

  • some_guy ( some_guy@lemmy.sdf.org ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3 years ago

    Removed by mod

  • neoney ( neoney@lemmy.neoney.dev ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    sudo nix flake update && sudo nixos-rebuild switch —flake .

  • President_Pyrus ( President_Pyrus@feddit.dk ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    I updated my RPi zero running pi hole today. I had to disable pi hole, and even then it took well past half an hour to update…

  • Skedule ( Skedule@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    What are the chances, I’m currently waiting for apt-get upgrade to finish while browsing Lemmy.

  • Taasz/Woof ( MangoPenguin@lemmy.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    This was me the first time I tried using a Raspberry Pi, I’d never experienced an update taking longer than a minute or two before then

  • curiousaur ( curiousaur@lemmy.fmhy.ml ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    This is not my beautiful house.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 8 users / day
  • 46 users / week
  • 359 users / month
  • 1.81K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code