{"authors":["utzer"],"canonical_url":"https://newblog.utzer.de/2020/04/20/debian-based-full-updates-in-one-command/","categories":["Linux"],"content":"I have this small script deployed on any of my #Debian based systems, it just does all the update, upgrade, dist-upgrade, autoremove and autoclean in one run.\n\n```\n#!/bin/sh\n\nif [ $# -eq 0 ]; then\n  sudo sh -c \"apt-get update \u0026\u0026 apt-get upgrade \u0026\u0026 apt-get dist-upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get autoremove \u0026\u0026 apt-get autoclean\"\nelse\n  sudo sh -c \"apt-get update \u0026\u0026 apt-get upgrade \u0026\u0026 apt-get dist-upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get install $@ \u0026\u0026 apt-get autoremove \u0026\u0026 apt-get autoclean\"\nfi\n```\n\nI have this script deployed in a lazy manner, I just have it sitting in my users home folder and called it \"up\", I did do a \"chmod +x up\" and just start it like this:\n\n```\n~/up\n```\n\nIt also accepts one several package names as an arguments and that be called like this:\n\n```\nsudo ~/up package1,package2\n```\n\nThis will then install \"package1\" and \"package2\".\n\nI am not sure where I found this, but I surely did find this somewhere in the internet and just took it from there, you thanks to who ever put this together.\n","content_format":"markdown","date":"2020-04-20T10:24:40Z","description":"I have this small script deployed on any of my #Debian based systems, it just does all the update, upgrade, dist-upgrade, autoremove and autoclean in one run. ``` #!/bin/sh if [ $# -eq 0 ]; then sudo sh -c \"apt-get update \u0026\u0026 apt-get upgrade \u0026\u0026 apt-get dist-upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get autore","html_url":"https://newblog.utzer.de/2020/04/20/debian-based-full-updates-in-one-command/","json_url":"https://newblog.utzer.de/2020/04/20/debian-based-full-updates-in-one-command/index.json","lastmod":"2020-04-20T10:24:40Z","markdown_url":"https://newblog.utzer.de/2020/04/20/debian-based-full-updates-in-one-command/index.md","media":[],"schema_version":1,"tags":["apt","debian","linux"],"title":"Debian based full updates in one command","type":"blog_post"}