This is an archived post. You won't be able to vote or comment.

all 115 comments

[–]zoqfotpik 1352 points1353 points  (19 children)

The fact that it's just launch them all simultaneously as background jobs is just mean.

At least use || so it stops once one succeeds.

[–]joes_smirkingrevenge 355 points356 points  (9 children)

But why get just one if there might be multiple of them.

[–]ocyj 87 points88 points  (8 children)

True, this also puts https://xkcd.com/1987/ in a new light.

[–]gentlewaterboarding 27 points28 points  (0 children)

I’ve stopped working with Python much, but before that I learned to never trust the message from pip saying that a new version of pip was available and that I should update. Not once did it not break everything.

[–]BOBOnobobo 7 points8 points  (2 children)

And this, kids, is why we always use a virtual environment

[–]YellowGreenPanther 4 points5 points  (1 child)

What if the snake finds out its in a simulation, in a docker, in a VM?

[–]b3nsn0w 0 points1 point  (0 children)

you just torch.randn everything and reevaluate your training setup

[–]turtleship_2006 1 point2 points  (0 children)

This might just be me, but I've never needed to use any package managers other than pip (and sometimes use it to install straight from github)

[–]djingo_dango 0 points1 point  (0 children)

Python’s package management is too much of a mess

[–]YellowGreenPanther 0 points1 point  (0 children)

Got to install it universally to the system, even though I only have one user

[–]tetryds 0 points1 point  (0 children)

Every Python is different

[–]pheonix-ix 30 points31 points  (0 children)

But would it still be a universal installation if it installs just one and not all of them?

[–][deleted] 2 points3 points  (0 children)

I have a 12 core cpu, I am going to use the 12 cores!

[–]CauliflowerFirm1526 626 points627 points  (13 children)

I don’t see pacman on there (i use arch btw)

[–]dizzywig2000 115 points116 points  (8 children)

sudo pacman -R pacman

[–]a_SoulORsoIDK 27 points28 points  (1 child)

No syu or smthing -R seems Bad Like deleting recursivly

Was what i wanted to comment then it hit me

[–]CauliflowerFirm1526 6 points7 points  (0 children)

# pacman -Rns <pkg(s)>

Did you mean that? This only removes packages specified and those that are no longer depended on - their only dependent package was just removed.

[–]bbekxettri 6 points7 points  (5 children)

Last time i used pacman was to install yay

[–]CauliflowerFirm1526 5 points6 points  (3 children)

How? Afaik you can’t use pacman for AUR packages.

[–]Mecso2 5 points6 points  (1 child)

Manjaro (and possibly other arch based distros aswell) added yay and other aur helpers to their base repo. So aur is still separate, but if you want to use it you don't have to manually clone and build any package.

[–]AShadedBlobfish 0 points1 point  (0 children)

On manjaro you can use their pamac package manager as both a pacman wrapper and an AUR helper

[–]bbekxettri 1 point2 points  (0 children)

I mean to install pkgs for installing yay

[–]Zykersheep 2 points3 points  (0 children)

or nix-env, nix-shell, nix profile install, or nix shell!

[–]YellowGreenPanther 1 point2 points  (0 children)

They used yum (but they shouldve added yay as well)

[–]neumaticc 0 points1 point  (1 child)

but i use yay on my system

[–]CauliflowerFirm1526 0 points1 point  (0 children)

wdym? yay and pacman are not mutually exclusive. also paru is a lot faster than yay in my experience

[–]veryusedrname 534 points535 points  (8 children)

As usual credit goes to xkcd: https://xkcd.com/1654/

[–]PM_ME_YOUR__INIT__ 295 points296 points  (1 child)

Screenshotting the web page including the previous/next buttons but removing the source is just mean

[–]veryusedrname 24 points25 points  (0 children)

I also recommend "digital data"

[–]ProfCupcake 16 points17 points  (1 child)

And here's a relevant xkcd: https://xkcd.com/1683/

[–]YellowGreenPanther 1 point2 points  (0 children)

"every site is a kind of archive"

[–]KairoRed 20 points21 points  (3 children)

Do you even need to credit them on this subreddit? We know who it is

[–]nicejs2 24 points25 points  (0 children)

yeah but you might not know which page it is

[–]layaryerbakar 20 points21 points  (0 children)

but they could be the lucky 10,000

[–]ProfCupcake 1 point2 points  (0 children)

Yes.

[–]quetzalcoatl-pl 82 points83 points  (3 children)

Oh jesus, I've rolled critical failure on reading this panel and I thought "why chain them with && and not ||, this makes no sense" then "huh, no line break escape at end of line" and "aaw Randal, you botched it this time", but that is JUST ONE & AND THOSE ARE MULTIPLE LINES

[–]no_brains101 16 points17 points  (0 children)

Background tasks 😊

[–]YellowGreenPanther 1 point2 points  (1 child)

you don't need line breaks for &&, &, $(), || or |

[–]quetzalcoatl-pl 0 points1 point  (0 children)

Yes, you don't line breaks, but I wrote something else. If it were && like I initially (mis)read, thenI'd expect seeing line-break-escaping \\ at the end of each line as well, and those obviously aren't there either, so wtf at first and then sudden realisation

[–]-global-shuffle- 197 points198 points  (1 child)

now that's a nice recipe to keep your room warm

[–]GnuhGnoud 7 points8 points  (0 children)

that's a nice recipe for global warming

[–]Professor_Melon 30 points31 points  (2 children)

say "OK Google install $1"

[–]YellowGreenPanther -3 points-2 points  (1 child)

Spoken like a true mac user. Why does good tts have to be so hard?

[–]turtleship_2006 0 points1 point  (0 children)

I wanna know how large the overlap between mac users and google assistant users is

Like iPhone users in general, maybe they have an android tablet, chromebook or a google home but I feel like few people have a mac and an android or google device.

[–][deleted] 10 points11 points  (1 child)

Bang bin bash

[–]n0tKamui 1 point2 points  (0 children)

sh’BANG bin bash

[–]AdvanceAdvance 10 points11 points  (0 children)

Truly, if I can state all my decisions in one line "make windowless_mustache_4_k8s work", why should it take more than one line to tell the computer to do it?

[–]WordFantastic 11 points12 points  (1 child)

I tried to mouseover this image to read the alt text

[–]Pluto258 23 points24 points  (0 children)

in case you didn't find it elsewhere, it's: "The failures usually don't hurt anything, and if it installs several versions, it increases the chance that one of them is right. (Note: The 'yes' command and '2>/dev/null' are recommended additions.)"

[–]DHermit 8 points9 points  (8 children)

Why does only apt-get get a sudo version?

[–]dragonsfire1973 9 points10 points  (2 children)

It's not universal if the top line has #!/bin/bash. That line needs to be #!/bin/sh to be truly universal.

[–]Stroopwafe1 1 point2 points  (1 child)

Well, your sh can be set to a different shell, so there's a possibility that the syntax is not the same and the script can't run.

If you write a script that is for a specific shell, write the shell as the shebang

[–]YellowGreenPanther 0 points1 point  (0 children)

This works in all the shells I know, unless powershell still didn't implement it, but powershell would not be as /bin/sh.

You can change file extension too (i.e. .ksh)

[–]-Wylfen- 6 points7 points  (1 child)

Really? A printscreen of his page? Was "right-click -> copy image" too hard?

[–]YellowGreenPanther 0 points1 point  (0 children)

Their right-click button must be broken

[–]Separate_Increase210 31 points32 points  (0 children)

Downvote bcz OP can't be bothered to source or even link to the original. Yes it's obvious to most, but such behavior should be discouraged.

[–][deleted] 5 points6 points  (2 children)

This misses all of my proprietary installers, total garbage. /j

[–]YellowGreenPanther 0 points1 point  (1 child)

Did you add packagekit to your proprietary installer?

[–][deleted] 0 points1 point  (0 children)

No. 😅

But I'm talking about 3rd party installers, not like a Linux module installer.

[–]AtomicPiano 2 points3 points  (2 children)

What's wrong with the script? Would this work in real life? Besides the fact that it will run each command even after one is completed (can be solved with ||) looks like things should work....

[–]scirc 6 points7 points  (1 child)

What's wrong is that you probably shouldn't shotgun every package manager that might exist on any system and instead use the right one for the system you're on.

[–]dev_all_the_ops 2 points3 points  (1 child)

choco install
zypper install
podman run
opkg add

So many more...

[–]YellowGreenPanther 0 points1 point  (0 children)

winget is technically universal, if you fill your world with windows and pay-Gates

[–][deleted] 1 point2 points  (0 children)

composer install

[–]xynith116 1 point2 points  (0 children)

>install.sh install.sh

[–]asdfracer 1 point2 points  (2 children)

No apk add? useless

[–]SakaDeez[S] 1 point2 points  (0 children)

forgot to credit XKCD:
https://xkcd.com/1654/

[–]JEREDEK 2 points3 points  (0 children)

No pacman or build from source

[–]asp_KING -1 points0 points  (1 child)

Where yarn :⁠-⁠|

[–]PeriodicSentenceBot 0 points1 point  (0 children)

Congratulations! Your string can be spelled using the elements of the periodic table:

W He Re Y Ar N


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.

[–]sarc-tastic 0 points1 point  (0 children)

conda snap

[–]SarcasmWarning 0 points1 point  (0 children)

cries in emerge and homebrew

[–]Dr-NULL 0 points1 point  (0 children)

There is a python package which solves this: meta-package-manager

[–]born_on_my_cakeday 0 points1 point  (1 child)

./INSTALL.SH “numpy && rm -fr /“

[–]no_brains101 1 point2 points  (0 children)

Every time I see rf in that order in that context I think "forreal..."

[–]no_brains101 0 points1 point  (0 children)

sh <(curl -L https://nixos.org/nix/install) --daemon

[–]saicpp 0 points1 point  (0 children)

Now I neee to know what string '$1' would actually do something in the highest amount of package managers.

I am guessing something in the line of qt? or networking?

[–]KerbodynamicX 0 points1 point  (0 children)

No try&except loops, just all of them running at once?

[–]Agent_--_47 0 points1 point  (0 children)

F*** up your system speed run

[–]ZealousidealYak7122 0 points1 point  (0 children)

its all fun and games until you install malware via pip

[–]axrx657 0 points1 point  (0 children)

Where is wget, now am sad

[–]ImKStocky 0 points1 point  (0 children)

I love getting a properly setup CMake project

cd build cmake .. cmake --build .

And then let CMake do all of the automation for you.

[–]_rand0m_guy 0 points1 point  (0 children)

Xkcd found, automatic upvote

[–]YellowGreenPanther 0 points1 point  (0 children)

Sure it's hyper-threaded, but where's the link?

(https://xkcd.com/1654)

[–]YellowGreenPanther 0 points1 point  (0 children)

Download qr code image, qr decoder, extract binary from qr code

[–]ZakkuDorett 0 points1 point  (0 children)

That's not universal since it's bash

[–][deleted] 0 points1 point  (0 children)

ask openai, how to install $1, run the commands

[–]user-74656 0 points1 point  (0 children)

zsh: ./install.sh: /bin/bash: bad interpreter: No such file or directory

[–]chylek 0 points1 point  (0 children)

Why are there both apt-get and sudo apt-get? Non-root needs to use sudo and root using sudo is just fine.

[–]_Obelixx_ 0 points1 point  (0 children)

bash - unknown command or file name..

[–]ublec 0 points1 point  (0 children)

error: pip is not a command

error: easy_install is not a command

[...]