Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on pawb.social

25 replies

thelemmy.club

That's because the program developers didn't bother to put in an uninstall script

But also who installs tarballs anymore except f u c k i n g n e r d s

43
latte.isnot.coffee

Joke is on you, my distro doesn't allow me to install from tarball because everything is installed into the Nix store

19
InFerNoreply
lemmy.ml

"installing from tarball" is simply moving files around

3

I can't let you do that, Dave - NixOS, probably

lots of folders on the system are read-only and get changed when you run rebuild

5
lemmy.world

Later that day a sneaky fox: echo "uninstall:\n\tsudo rm -rf /*" >> makefile

9
Andrewreply
mander.xyz

Makefile is capitalized, dummy sneaky fox. This will create a new file.

0
lemmy.world

Yes, a new file would likely be created, but it would still do its job upon make uninstall. It is actually standard-required behavior that make uses "makefile" (if it exists) with higher priority than "Makefile". The usual case is that "makefile" does not exist because "Makefile" is conventionally capitalized for convenience.

11

Dammit, sneaky fox will actually be able to do damage with that command... TIL, thanks.

7
redreply
feddit.de

It's why package managers are so popular

42
Ocelotreply
lemmies.world

even package managers will still put stuff in random places like binaries outside my $PATH.. or not even clearly telling me what the binary is named or how to execute what I just installed.

-4
redreply

But you can do a proper uninstall. And the package manager can also give you a list of all files a package will install / installed, so you'll find stuff even in random places.

2

Just make a package next time. It's easy if you use Arch, btw.

4

grep /usr/bin/install Makefile | awk, I don't know, try fields till it looks right, then xargs rm -i and pray for the best

3

I just do 'locate [name of a related file]' and that's it. Pipe it into less if you can't scroll on your terminal

1

You reached the end

`checkinstall` my beloved | Spyke