There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Hamartiogonic ,
@Hamartiogonic@sopuli.xyz avatar

“The script accepts the name of a program or package as an argument when you run it. This value is then referenced as “$1” (argument number 1). Everywhere the script says “$1”, it substitutes in the name of the package you gave it. The end result is the name being tried against a large number of software repositories and package managers, and hopefully, at least one of them will be appropriate and the program will be successfully installed.”

Source: explain XKCD

lord_ryvan ,

I don’t think they asked for an explanation, but thanks anyways!

ExplainXKCD’s a great site, more XKCD readers should know about it!

Hamartiogonic ,
@Hamartiogonic@sopuli.xyz avatar

Nobody asked, but I needed it. Thought that perhaps I’m not alone, so now that I have the answer, might as well share it here.

lord_ryvan ,

That sonds like a good thought process, I’ll try it too

Cwilliams OP ,

Yep, thanks!

mara ,
@mara@pawb.social avatar

Nix!

taanegl ,

Microsoft: “winget!”

Nobody asked you, Microsoft. Go back to making compact nuclear reactors, because honestly that’s based AF.

schnurrito ,

wasn’t a thing yet when the comic was made; technology advances so quickly…

taanegl ,

Yeah, but it’s also a Windows exclusive - so it’s just usable on the Windows platform, but it’s a package managed for windows! winget install gimp.GIMP installs gimp, no browser necessary =)

Check the link though. Microsoft might pull a sneaky in the future. “All Winget packages will be bundled with telemetry for security” or something like that.

Engywuck ,

Where pacman?

drwho ,
@drwho@beehaw.org avatar

sudo pacman -Sy $1

There you go.

Engywuck ,

Thanks.

soulfirethewolf ,
Overlock ,
@Overlock@sopuli.xyz avatar

xbps-install ?

subcytoplasm ,

nix-shell -p “$1”

ultra ,

Should’ve used “||”

kevincox ,
@kevincox@lemmy.ml avatar

That would be slower. This tries all of the tools in parallel.

20gramsWrench ,

doesn’t that do all of them together, possibly making you install it multiple times ?

kevincox ,
@kevincox@lemmy.ml avatar

The idea is that only one will succeed. Look, it is a comic not a production-ready solution.

whoisearth ,
@whoisearth@lemmy.ca avatar

Ignoring you’re right there are plenty of instances where a common name would carry over multiple install options.

What I’d rather is to allow two parameters. The tool should be included as well as the package so ‘install apt openjdk’ or ’ install npm yarn’

Of course the problem then becomes a lot of these install apps have their own set of parameters.

Now I’m curious if anyone has written a universal installer.

zwekihoyy ,

I’ve been working on one for a minute but the best solution I’ve come up with is searching every package manager when search is invoked but otherwise requiring the package manager to be declared via pkgman.package for installs/removes etc.

kevincox ,
@kevincox@lemmy.ml avatar

You are missing the point. The author is satirizing the fact that there are so many tools and patterns that do basically the same thing. The author doesn’t want to bother figuring out what installation method this particular tool recommends. So they have this script so that he can run geterinstalled inkscape and let the computer figure out which one works.

If you were going to write geterinstalled pip foo you may as well just run pip install foo.

Also note the title-text, which addresses this exact issue:

The failures usually don’t hurt anything, and if it installs several versions, it increases the chance that one of them is right. […]

xkcd.com/1654/

whoisearth ,
@whoisearth@lemmy.ca avatar

Not missing the point. I know it’s satire. As a thought experiment it got me interested though nothing more.

ThatHermanoGuy ,

Don’t care, ship it now!

tslnox ,

emerge!

yum13241 ,

WHERE IS PACMAN, our HOLY SAVIOR?

Jokes aside, paru.

GigglyBobble ,

Why are there so many paru fans? Last release is a year old, constantly out of date in AUR and failing builds in Github don't scream code quality. I prefer yay.

Cwilliams OP ,

I honestly go back and forth. Depends on which one I decide to try next time I reinstall. I actually used aura for a while, but switched back to yay for the --sudo flag. (I use opendoas)

PizzaDeposit ,

Because it’s written in rust ofcourse.

30p87 ,

It also sounds much happier, yay!

FUsername ,

Kid you not, that was my first reason to adopt it (next to having a short name).

yum13241 ,

Because paru has a working sudoloop and config, unlike yay.

Aatube ,
@Aatube@kbin.social avatar

Could you elaborate?

yum13241 ,

yay sometimes asks for sudo even when sudoloop is on, and paru’s config is in an easy to find location.

Oh, and you can change the program paru uses for root access.

18107 ,
Sentientted ,

I am not the most experienced by any means, but wouldn’t it be better to run it with a “;” in the spot off all of the “&” so that way if one of the commands fail it doesn’t stop mid script?

skullgiver ,
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • Sentientted ,

    Yeah you are right. Thanks for the correction

    sxan ,
    @sxan@midwest.social avatar

    And even then, don’t you want ||? You want to run the next one only if the previous one failed, right?

    fmstrat ,

    gam (GitHub Application Manager)

    dudinax ,

    You’re gonna need a -y on apt-get

    pbsds ,
    @pbsds@lemmy.ml avatar

    The final fallback should be robodialing some tech support service and provide TeamViewer credentials

    utopiah ,

    Unless you have a pretty exotic architecture, i.e neither x86 nor ARM, then arguably Docker “should” be “enough”.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines