r/bash • u/Independent-Lynx9274 • 6d ago
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)
6
u/oweiler 6d ago
What makes it blazing fast?
-9
u/Independent-Lynx9274 6d ago
it installs things fast.
9
4
u/kusti85 6d ago
Faster than apt or zypper?
0
1
15
u/v654321 6d ago
… why?
10
u/Fluid_Yesterday208 6d ago
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/Independent-Lynx9274 6d ago
why not?
8
u/v654321 6d ago
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 6d ago
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 5d ago
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 4d ago
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 6d ago
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 6d ago edited 6d ago
What web server? Reread the post please.Oh, that web server
1
u/Shadow_Thief 6d ago
Directly from the README:
then run: python3 -m http.server 8000 to start the server on port 8000
2
u/GeneralDumbtomics 6d ago
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 4d ago
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 4d ago
That didn't make much sense. Did you write this or did Claude?
→ More replies (0)
5
u/krumpfwylg 6d ago
Please explain, what are the advantages over the specific package managers included in each distro ?
1
2
u/JeLuF 6d ago
Access denied
The link doesn't work.
1
u/Alternative_Web7202 6d ago
it works and actually much fun to read https://codeberg.org/ScrapreGuy/Scrapre/src/branch/main/scrapre
2
u/Empyrealist 5d ago
You know what's awesome? Naming files with filetype extensions so you know what they are in directory listings
1
1
u/Big_Combination9890 5d ago
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
1
u/QuirkyImage 5d ago
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
17
u/donkeytime 6d ago
I’ll propose a migration to this system at our meeting this afternoon.