In this article, we'll explore what these commands do, how they work, and why they're important. Two commonly used commands in APT package management are apt-get update and apt-get upgrade. APT makes it easy to keep your system up-to-date with the latest package releases. Note that I used a loop on the apt update command because I was getting mirror sync in progress errors and wanted it to keep trying.APT (Advanced Packaging Tool) is a package manager used for installing, updating, and managing software packages on Linux systems, particularly Debian and Ubuntu. In case anyone is still interested, I've been working on a git project which runs through the same commands. I found this thread looking for the same treasure. bash_aliases file is that you can also create custom aliases in that file for other actions and that it will automatically get sourced each time you open a terminal. Now you can run the command fup to fully update and upgrade your system anytime. bashrcĪnd paste the following code at the end of file: if then bash_aliases file paste the alias command mentioned above.Įdit your. You can do that form the terminal with the following command: touch. If you need to use this frequently, do the following.Ĭreate a file named. Now, running fup will automatically do all the jobs defined in the alias. Just copy-paste the following alias command and execute it: alias fup='sudo apt-get -y update sudo apt-get -y full-upgrade sudo apt-get -y autoremove sudo apt-get -y autoclean' The file was turned into an executable using chmod.Writing on this path requires superuser access which is why it's not possible to do it in the step before. The file is moved to /usr/local/bin/ so it is executable from anywhere.> was used to redirect/write echo's output (our line) to an "update" file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |