I'm starting a project where all I really want is a shell with apt-get or something similar.
I've searched for small distros, and there are plenty, but I don't need any GUI other than command line. I'm sure a better search would yield better results, but it's rather saturated for me not knowing the proper key words.
The project is making a Raspberry Pi run different scripts based off which USB drive is inserted, so all I need to know is what USB drive is inserted and have some way to connect that to running a script.
EDIT: this did not come up when I searched, but it came up in the sidebar once I'd typed my question. What is the smallest possible Linux implementation?
Linux From Scratch seems to be my answer, but I'm going to leave the question up until I'm certain, and have it open to better answers should they exist.
EDIT 2: Linux From Scratch is apparently not for Raspberry Pi's, nor very easy to update. It's more hobbyist than functional, is the gist I've gotten.