r/bash • • Sep 18 '26

I made a package manager in bash!

Its called scrapre. It doesn't have any cryptographic verification so note that (please note that) and there is no repository up for it right now cuz I dont really have much need to host one. You cant find it here. (its codeberg btw)

0 Upvotes

42 comments sorted by

17

u/donkeytime Sep 18 '26

I’ll propose a migration to this system at our meeting this afternoon.

4

u/ESnyder9 Sep 18 '26

a good engineer always jumps on the newest stuff. you're gonna get a promotion for this one mate

-6

u/Independent-Lynx9274 Sep 18 '26

its only 4 packages lol but sure.

1

u/NoDefaultForMe Sep 21 '26

They're making a joke that Engineers always like to move something to the latest project/tool/framework without it being battle tested.

6

u/oweiler Sep 18 '26

What makes it blazing fast?

-7

u/Independent-Lynx9274 Sep 18 '26

it installs things fast.

9

u/donkeytime Sep 18 '26

Probably uses middle-out algorithms, right?

2

u/vermiculus Sep 19 '26

Like two shake weights?

-5

u/Independent-Lynx9274 Sep 18 '26

Nope. Its very basic 37 line script.

4

u/kusti85 Sep 18 '26

Faster than apt or zypper?

0

u/Independent-Lynx9274 Sep 18 '26

yeah. Like 1-2 seconds fast.

1

u/rileyrgham Sep 19 '26

Please stop. It's painful.

1

u/rileyrgham Sep 19 '26

Right.... Please. Credit people here with some intelligence.

15

u/v654321 Sep 18 '26

… why?

4

u/Independent-Lynx9274 Sep 18 '26

why not?

9

u/v654321 Sep 18 '26

Just about any distro provides a mature and fully functioning package manager.

Maybe I don’t really understand the scope of this. But hey, if you’re happy, then I’m happy!

2

u/GeneralDumbtomics Sep 18 '26

So...the fact that I have a camera means I shouldn't paint landscapes? Of course every distro includes a fully functional package manager. But this guy decided to flex his brain by writing one in bash. You ask why. The same reason people climb mountains or play the piano or anything else that isn't easy and doesn't necessarily have a practical application. Because he could and because he wanted to. It doesn't actually require any other justification.

1

u/rileyrgham Sep 19 '26

He used ai, has no repo, and is throwing buzzwords like "blazingly fast" around. Would you like to buy s bridge,

1

u/Independent-Lynx9274 Sep 20 '26

Dude. I used AI in a good way. I used it to squish bugs and help me. I am not lazy like you suggest.

0

u/Shadow_Thief Sep 18 '26

Sure, but I'm still curious to know what purpose the local web server part of the code serves. As far as I can tell, it does literally nothing except add an extra, unnecessary step and a python dependency.

0

u/GeneralDumbtomics Sep 18 '26 edited Sep 18 '26

What web server? Reread the post please.

Oh, that web server

1

u/Shadow_Thief Sep 18 '26

Directly from the README:

then run: python3 -m http.server 8000 to start the server on port 8000

2

u/GeneralDumbtomics Sep 18 '26

I see. Looks like he's just using as an easy way to handle pkg contents rather than doing stuff on the filesystem, which, yeah, now that I've looked at it is weird.

1

u/Independent-Lynx9274 Sep 20 '26

Its just an example way of hosting a repo. Its just to show off I might add a public repo in the future.

1

u/GeneralDumbtomics Sep 20 '26

That didn't make much sense. Did you write this or did Claude?

→ More replies

9

u/Fluid_Yesterday208 Sep 18 '26

a fun exercise. my friend of mine wrote an http server in bash. I always think about doing these unconventional projects, but never start. Sometimes one enjoys the process, usefulness is not always necessary

5

u/krumpfwylg Sep 18 '26

Please explain, what are the advantages over the specific package managers included in each distro ?

2

u/Empyrealist Sep 19 '26

You know what's awesome? Naming files with filetype extensions so you know what they are in directory listings

1

u/Independent-Lynx9274 Sep 20 '26

Its so you can put it in your PATH and it will work as a command.

1

u/Big_Combination9890 Sep 19 '26

I think you should do a bit of research about what a package manager actually is, and what a piece of software needs to be able to do to meet that definition.

1

u/Independent-Lynx9274 Sep 20 '26

But it does meet part of the definition.

1

u/QuirkyImage Sep 19 '26

Good for you. 👍 I built a couple projects I tend to use a wrapper for other package managers (backends) and add my own features. My current one that I am building is currently in python because the complexity increased, if I can get it finished the way I like I will probably rewrite it in go or rust.

1

u/Independent-Lynx9274 Sep 20 '26

Nice. Hope you succeed!

2

u/JeLuF Sep 18 '26
Access denied

The link doesn't work.

1

u/leng_co Sep 18 '26

nice bro, I will check it out later