this post was submitted on 15 Jul 2023
209 points (100.0% liked)

Programmer Humor

854 readers
10 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 27 comments
sorted by: hot top controversial new old
[–] gkd@lemmy.ml 22 points 1 year ago (4 children)

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.

[–] 497a@discuss.tchncs.de 6 points 1 year ago (1 children)

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 2 points 1 year ago

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

[–] worfamerryman 4 points 1 year 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@lebowski.social 1 points 1 year 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 1 points 1 year ago

Try Nix instead of Homebrew.

[–] 497a@discuss.tchncs.de 10 points 1 year ago (1 children)

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

[–] alec@wirebase.org 5 points 1 year ago

Do you use Arch perchance?

[–] produnis@discuss.tchncs.de 7 points 1 year ago (3 children)
[–] Swiggles@lemmy.blahaj.zone 9 points 1 year ago* (last edited 1 year 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@lemmy.sdf.org 6 points 1 year ago

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

[–] GizmoLion@kbin.social 7 points 1 year ago

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

[–] LurkyTheHatMan@ttrpg.network 6 points 1 year ago (1 children)

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

[–] rmuk@feddit.uk 2 points 1 year ago

&& sudo halt -f

It's quittin' time! See ya Monday!

[–] PracticalParrot@discuss.tchncs.de 5 points 1 year ago (1 children)

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 8 points 1 year ago (1 children)

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

[–] Zucca@sopuli.xyz 1 points 1 year ago (1 children)

.... wait?

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

[–] __jov@lemmy.ml 2 points 1 year ago

apt-get is used in scripting.

apt isnt recommended to be used in scripting.

[–] DrM@feddit.de 5 points 1 year ago* (last edited 1 year 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

[–] Stabbywithsocks1@lemmy.ml 4 points 1 year 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..."

[–] President_Pyrus@feddit.dk 3 points 1 year 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@lemmy.ml 3 points 1 year ago

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

[–] neoney@lemmy.neoney.dev 3 points 1 year ago

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

[–] MangoPenguin@lemmy.blahaj.zone 2 points 1 year ago* (last edited 1 year 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@lemmy.fmhy.ml 1 points 1 year ago

This is not my beautiful house.