happysl.app
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Tibor@pawb.social to Programmer Humor@lemmy.mlEnglish · 2 年前

When you have to update the server

pawb.social

message-square
61
link
fedilink
402

When you have to update the server

pawb.social

Tibor@pawb.social to Programmer Humor@lemmy.mlEnglish · 2 年前
message-square
61
link
fedilink
alert-triangle
You must log in or register to comment.
  • gkd@lemmy.ml
    link
    fedilink
    English
    arrow-up
    51
    ·
    2 年前

    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@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      15
      ·
      2 年前

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

      • navi@lemmy.tespia.org
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 年前

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

    • worfamerryman@beehaw.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 年前

      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.

    • pkulak@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Try Nix instead of Homebrew.

    • urda@lebowski.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      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;
      }
      
  • DontRedditMyLemmy@lemmy.world
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    2 年前

    Can we get some autoremove love in here?

  • owenfromcanada@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 年前

    That’s the sleep command. That is, you type that before going to sleep.

  • 0x497a@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 年前

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

    • Regular Human@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 年前

      But for the love of linus, please read the news feed first!

      • Rin@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 年前

        Ain’t nobody got time for that

    • alec@wirebase.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 年前

      Do you use Arch perchance?

  • LurkyTheHatMan@ttrpg.network
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    2 年前

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

    • NRay7882@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 年前

      -yqq, “and don’t say another word until it’s done.”

    • rmuk@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 年前

      && sudo halt -f

      It’s quittin’ time! See ya Monday!

  • GizmoLion@kbin.social
    link
    fedilink
    arrow-up
    10
    ·
    2 年前

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

  • produnis@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    3
    ·
    2 年前

    pacman -Syyu

    …btw

    • Swiggles@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      17
      ·
      edit-2
      2 年前

      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@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 年前

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

      • vkirlin@lemmy.world
        link
        fedilink
        English
        arrow-up
        9
        ·
        2 年前

        I have “yeet” for “yay -Rcns”

    • jsqribe@feedly.j-cloud.uk
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 年前

      yay -Syyu

      • daf@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 年前

        It’s just yay it will update by default if no parameters are passed.

      • produnis@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 年前

  • low_bass2@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 年前

    Why the -y after apt update? I’ve never had to do that on mint

    • schmensch@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 年前

      Automatically agrees to everything. Can be dangerous, use with caution. If you’re able to, I wouldn’t use it.

      • low_bass2@lemmygrad.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 年前

        Oh yeah, I actually have a very simple bash script that includes apt upgrade -y (sketchy I know lol). But apt update just updates the sources so doesn’t require the -y as far as I know

  • some_guy@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 年前

    Where did these Tarintino shots come from? The man has the pointiest chin.

    • AusatKeyboardPremi@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 年前

      I have the same question. Honestly, it looks AI generated to me.

  • PracticalParrot@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 年前

    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@infosec.pub
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 年前

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

      • Zucca@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        2 年前

        … wait?

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

        • __jov@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 年前

          apt-get is used in scripting.

          apt isnt recommended to be used in scripting.

  • DrM@feddit.de
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    2 年前

    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

  • President_Pyrus@feddit.dk
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 年前

    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…

    • czardestructo@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 年前

      This as my first thought. When running these commands in my pi1 or zero I go get a sandwich and come back an hour later

    • chandz05@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 年前

      Damn why so long? My 3b takes a few mins

      • czardestructo@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 年前

        Pi zero is many times less powerful than the pi3 but still perfectly fine for lots of simple tasks. Just takes forever to update.

  • demesisx@lemmy.world
    cake
    Banned
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    2 年前

    rebuild_intelTower_withUpdate() { ./home/scripts/pullrelease.sh nix flake update sudo nixos-rebuild switch --flake .#intelTower --impure --show-trace nix build .#homeConfigurations.bismuth-edp.activationPackage --impure --show-trace activateHM }

    • neoney@lemmy.neoney.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 年前

      impure? :​(

      • demesisx@lemmy.world
        cake
        Banned
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 年前

        It pulls in flakes from flakes. So, unless I want to travel the whole dependency graph down all of the flakes and put them in my top-level flake, I have to use impure. 😕

        • neoney@lemmy.neoney.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 年前

          I personally use a patch on my nix that allows to evaluate a thunk for the inputs, and have every input in a different file. https://github.com/flafydev/combined-manager

          • demesisx@lemmy.world
            cake
            Banned
            link
            fedilink
            English
            arrow-up
            4
            ·
            2 年前

            thanks so much for sharing. I’ll give it a look.

          • neoney@lemmy.neoney.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 年前

            My config is at https://github.com/n3oney/nixus

  • ben16w@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 年前

    I feel that Tanintino would benefit from a beard

  • atimholt@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 年前

    I think everyone should try Gentoo at least once, for the experience. Why download binaries when you can compile everything?

    • Zucca@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 年前

      I’ve used Gentoo for almost 20 yeas by now. 😋

      • QuazarOmega@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 年前

        I’m guessing you just got to actually use it now then

    • TimeSquirrel@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 年前

      I already completed Linux From Scratch once 20 years ago for shits and giggles. I want to actually use my system, thanks.

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: [email protected]

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.

  • 26 users / day
  • 23 users / week
  • 49 users / month
  • 7.75K users / 6 months
  • 0 local subscribers
  • 34.3K subscribers
  • 1.62K Posts
  • 35.1K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org