▲ 1072 ▼ Command line tip of the day (lemmy.world) submitted 8 months ago by yesman@lemmy.world to c/linuxmemes@lemmy.world 160 comments fedilink hide all child comments
[–] JargonWagon@lemmy.world 6 points 8 months ago* (3 children) WHAT. Does this do both sudo apt update and sudo apt upgrade? permalink fedilink source parent hideshow 6 child comments replies: [–] cypherpunks@lemmy.ml 5 points 8 months ago (1 child) see also --autoremove permalink fedilink source parent hideshow 2 child comments replies: [–] JargonWagon@lemmy.world 1 point 8 months ago* (1 child) Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this: # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y permalink fedilink source parent hideshow 2 child comments replies: [–] cypherpunks@lemmy.ml 2 points 8 months ago I can't really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them. Eg, if you run apt --update --autoremove upgrade -y once a day you'll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade. To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to... but not quite everything. 🤷 permalink fedilink source parent [–] JackbyDev@programming.dev 4 points 8 months ago I think so. I read it a few months back, but I don't use any apt based systems to check on. permalink fedilink source parent [–] TerraRoot@sh.itjust.works 1 point 8 months ago Yup permalink fedilink source parent
[–] cypherpunks@lemmy.ml 5 points 8 months ago (1 child) see also --autoremove permalink fedilink source parent hideshow 2 child comments replies: [–] JargonWagon@lemmy.world 1 point 8 months ago* (1 child) Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this: # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y permalink fedilink source parent hideshow 2 child comments replies: [–] cypherpunks@lemmy.ml 2 points 8 months ago I can't really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them. Eg, if you run apt --update --autoremove upgrade -y once a day you'll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade. To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to... but not quite everything. 🤷 permalink fedilink source parent
[–] JargonWagon@lemmy.world 1 point 8 months ago* (1 child) Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this: # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y permalink fedilink source parent hideshow 2 child comments replies: [–] cypherpunks@lemmy.ml 2 points 8 months ago I can't really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them. Eg, if you run apt --update --autoremove upgrade -y once a day you'll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade. To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to... but not quite everything. 🤷 permalink fedilink source parent
[–] cypherpunks@lemmy.ml 2 points 8 months ago I can't really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them. Eg, if you run apt --update --autoremove upgrade -y once a day you'll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade. To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to... but not quite everything. 🤷 permalink fedilink source parent
[–] JackbyDev@programming.dev 4 points 8 months ago I think so. I read it a few months back, but I don't use any apt based systems to check on. permalink fedilink source parent