This way, if you install the same application again, you may reuse your custom configuration. You should know that uninstalling apt package with apt remove does not remove user settings and configuration files (located under /etc directory). Dealing with configuration files after package removal It will remove all the dependency packages that are not required anymore, delete the older Linux kernel versions and thus free up disk space for you. Usually, you should try running the apt autoremove commands every few weeks. The dependency packages will stay in the system. You can just go ahead with your work after apt remove. sudo apt autoremoveĭo you really need to do that? No. So, what can you do? You can use the suggested command to remove these packages. These are dependency packages that were installed automatically when mplayer was installed. Cleaning up after package removal (optional)Īs you can see in the previous screenshot, it says, “The following packages were automatically installed and are no longer required” and then lists three packages. You have to press y or the enter key to continue with package removal. It also informs what dependency packages should be removed afterward. Type the password and press enter.Īs you can see in the screenshot below, it will show what packages are going to be removed. When you type the command, nothing is displayed on the screen. This is why you need to use sudo before the apt remove command. Installing and removing packages in Ubuntu requires that you have admin privileges. This is important because Linux is case-sensitive. The package name is mplayer (with all small letters). I decide to remove the MPlayer from my system. This will be a huge output and you may have to use the grep command to filter on the result. Tab completion with apt remove commandĪlternatively, you can list all the installed packages with apt and look for the package name: apt list -installed My system shows that there are two installed packages with names starting with mp. It will show the possible package names you can use.įor example, I typed sudo apt remove mp and press the tab. Try entering the first few starting letters and press tab. How do you get that? You can use the tab completion feature. For uninstalling a package, it provides the remove option. The apt command gives you all the essential tools to manage the APT packages. If you want to remove multiple packages, you can do that in a single command: sudo apt remove package_1 package_2 package_3 The new and recommended command is apt, which I would also suggest using. sudo apt-get remove package_nameīoth apt and apt-get commands are pretty much alike. You may also use the older apt-get remove command here. If you know the package name, just use it with the apt remove command like this: sudo apt remove package_nameĮven if you do not know the exact package name, tab completion is there to help you. I often end up having about a dozen different versions on the same machine, in case I want to reproduce some results from way back then.How do you uninstall apt packages in Ubuntu using the terminal? It’s quite simple, actually. That’s less than the trajectories of an intro-level tutorial. If later you want to delete a specific version, everything is contained in a single directory which can be deleted.Ī single version of GROMACS for me (both mixed and double precision in the same directory) takes up about 55 MB. Or $ source ~/local/gromacs-2022.2/bin/GMXRC Then you just need to source the GMXRC file for the version of your choice and you are off to the races: $ source /usr/local/gromacs-2022.2/bin/GMXRC This way each version of GROMACS will end up in it’s own subdirectory of either /usr/local/ where it can be accessed from any user of the machine (shared system) or under ~/.local/ when you are the only user of the system. DCMAKE_INSTALL_PREFIX=$/.local/gromacs-2022.2 DCMAKE_INSTALL_PREFIX=/usr/local/gromacs-2022.2 I can only recommend to make your life much easier in the future by configuring (and later compiling and installing) future versions of GROMACS with e.g.:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |