3 ms·
I think that there should be a database so that any time I install a program, the program will update the database so I never have to look for the program. Als
by h_tbob 3y ago
I think that there should be a database so that any time I install a program, the program will update the database so I never have to look for the program. Also the database would allow me to set the default and I could change it doing: `linpath default python3` and it would give a menu to select the default. Don't you think that would be great?
I just think this would make installation so easy!
- akerl_ 3y agoThere is such a database: it's the filesystem. The system package manager puts executables into /usr/bin and friends. Homebrew on Macs defaults to /usr/local/bin. > Don't you think that would be great? No. It's still not clear to me what this layer you're proposing would solve, relative to the current state. Other than that now every program would have to think about this new abstraction. As somebody pointed out in a parallel comment, you can approximate exactly what you're trying to pitch without writing any C: just set "export PATH=~/.linpath", and then write some helpers to manage the contents of that directory. I think if you tried to build a system like this you'd start to realize that you're reinventing what PATH already enables, with a lot more custom glue.