Closed foxsouns closed 2 years ago
@willeccles this is ready for your review.
Ooh new pfp?
Lets get this motato, anyway.
@6gk haha yeah, decided to do away with niko for a while. pusheen is temporary, but will stay for a while. but i'm getting off topic.
this is sage: im locked out of my main for the day (misplaced my main device, passwords are stuck on there): but i am here if needed, and will have control of my main again in around 7 hours.
though i cannot edit the file, ill start drafting it in the comments, and have it ready when i get back to my main
listorphans should output, line by line, the packages that have no dependencies prt-get remove supports only one at a time
prt-get listorphans | prt-get remove "$@"
this might work:
cruxorphans() {
coendvar=
unset found
if "$coendvar"; then
while IFS= read -r line; do
[ "$line" = "" ] && found=1
[ "$found" ] || prt-get remove "$line"
[ "$found" ] && done
fi
}
as always, im not really that great at bash, i just fill in the lines and make it look ok this may and probably does completely overcomplicates it, as always, and might also not work.
I am not sure what the output of prt-get listorphans
looks like. If it is just the names of the packages on each line, you can probably do this quite easily with one command (something like prt-get remove $(prt-get listorphans)
). However, if the lines require processing (e.g. they have data at the end of them like the output of xbps's list commands), you may have to process the data first.
I am not sure what the output of
prt-get listorphans
looks like. If it is just the names of the packages on each line, you can probably do this quite easily with one command (something likeprt-get remove $(prt-get listorphans)
). However, if the lines require processing (e.g. they have data at the end of them like the output of xbps's list commands), you may have to process the data first.
according to the wiki, prt-get listorphans
should print just package names, and the -v and -vv flags add more.
Having read the wiki and the source, I am not convinced that the output of listorphans
can be used directly without some processing. Have you tried this out?
i'll be able to soon, but i have yet to do so. give me a second to try and vm it, but as i said, i'm not on my main machine.
back on main. life got in the way earlier, but i will verify that crux works as assumed soon
noticed another duplicate in filelistftr, and though it works, it's redundant. im working on making the vm for crux now.
i just wasted 2 hours trying to virtualize crux i didnt set enough storage for it >:(
"yeah 512 will be enough": me before wasting hours of cpu and ram
expect an answer for how listorphans works by tomorrow. im miffed.
fyi: ugh i broke it again i'm givin up for today, ill try again tomorrow morning, probably
512
512 MB? wack
@6gk i have 2 free gigs rn, didn't really wanna give off more than i needed to
Oh? ​ Yeah that's not a lot.
i was referring to storage, but ram as well isn't ideal for me either, as host has 4 gigs ram.
Yea I forgot that for a minute on making the second comment.
Why do you only have 2GB of storage free though? Do you have 64GB storage?
shared system: all else is used by other users
well only like 3 people but storage is like 32gb at most
i'm givin up for today, ill try again tomorrow morning, probably
assuming my average install time of 2 hours: no. if i start now i wont wake up in time for tomorrow. i will do this soon. setting an alarm for it.
i have been ignoring this for too long: time for me to maybe do something
@willeccles @6gk bit the bullet against my procrastination and tried to test crux today. while i was waiting for the install, looking through the docs, and i found a script natively in crux named pkgfoster
. its the clean for this, cant believe i didnt see it earlier!
oh and, to note, this pr also moves guix into the right spot on the readme and removes the 'linux' from 'lunar linux', both on the readme and in the elif list.
p.s. sorry for my utterly shameful github usage, haha.
we fall out of spec again on clean. pkgutils is pretty rudimentary, and doesn't have a remove w/ deps, and i elected to use standard install, over depinst. info should provide a deplist, useful for inst or rm.
i also renamed lunar linux to lunar, so it matches the rest