$ sudo apt autocleanĬlean Package Repository 13. The apt autoclean or apt clean command is used to clean up the local repository cache by removing old package files that are no longer needed. These packages may have been installed in the past to satisfy the dependencies of other packages, but if those dependencies are no longer present, the packages become unnecessary. The apt autoremove command is used to remove packages that were automatically installed as dependencies but are no longer needed by any other package on your system. It retrieves the latest package versions from the repositories and installs them, replacing any older versions that are currently installed. The apt upgrade command is used to upgrade installed packages on a system to their latest available versions. The apt update command will help you to download a list of packages from different repositories included on your system and updates them when there are new versions of packages and their dependencies. $ sudo apt version firefoxĬheck Installed Package Version 9. The apt version command allows you to check the installed version and availability of a package in the repositories. Check the Version of Installed Package on Ubuntu To view the recommended missing packages for the apache2 package, you can use the apt recommends command as shown. $ sudo apt check firefoxĬheck Package for Broke Dependencies 7. Sometimes during package installation, you may get errors concerning broken package dependencies, to check that you do not have these problems run the command below with the package name. Check Package for Any Broken Dependencies The apt show command is used to display detailed information about a specific package, which includes its version, size, description, dependencies, and other relevant details. Show Information About a Package in Ubuntu The apt search command is used to search for packages in the repositories available based on keywords in their names or descriptions.įor example, to search for packages related to the apache2 web server, you would use the following command: $ sudo apt search apache2Īlternatively, you can also use the apt-cache command to search for a package in the system package cache based on a given search term such as name or description. $ sudo apt depends glancesĬheck Dependencies of Package 4. To view the dependencies of a package you can use the apt depends command, which displays a list of the dependencies of the specified package called glances. Check the Dependencies of a Package in Ubuntu List of Installed Files From a Package 3. The following ‘ apt content‘ command will display a list of files and directories that are installed on your system as part of the specified package called glances. To install a package named “ glances“, you would use the ‘ apt install‘ command which will install a package along with the needed dependencies. The apt command is used to manage package installation, upgrades, and removal in Debian-based Linux distributions, such as Ubuntu, Linux Mint, and others.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |