reportvur.blogg.se

Deb install command line
Deb install command line







deb install command line

To list package dependencies recursively then run ‘ apt rdepends’ followed by package name $ sudo apt rdepends docker 11) Downloading Package without Installing To list package dependencies run ‘ apt depends’ followed by package name $ sudo apt depends phpmyadmin $ sudo apt -purge autoremove 10) List Package Dependencies To view the information about a package, run ‘ apt show’ command followed by package name $ sudo apt show nginxĪutoremove option in apt command is used to remove the packages that were installed automatically to satisfy the dependencies and now no longer needed. $ sudo apt search httpd* 8) View Information About Package To search a package, run ‘ apt search‘ command followed by package name.

deb install command line

$ sudo apt full-upgrade 7) Search Package It is generally used when we want to update minor versions of Ubuntu / Debian systems.

deb install command line

To upgrade a specific installed package then use following command $ sudo apt install snapd -only-upgrade 6) Full System UpgradeĪlways be careful while upgrading the whole system, as it might remove the installed packages and will install the updated packages. To upgrade all the packages which are currently installed on your system then run ‘ apt upgrade’ command. To remove package and configuration files associated to package then use ‘ apt purge’ $ sudo apt purge nginx 5) Upgrade Package To remove a package then use ‘ apt remove’ command followed by the package name. But when we specify ‘-y’ then it is auto confirm and will install the packages. When we don’t pass ‘-y’ option in ‘apt install’ command then it will prompt you to confirm for its installation. To install a new package, use ‘ apt install‘ command followed by package name, example is shown below: $ sudo apt install nginx To List only upgradeable packages, run $ sudo apt list -upgradeable 3) Installing New Package To list only the installed packages, run $ sudo apt list -installed To list all the available packages including installed and upgradeable use apt list command. It is always recommended to run this command before installing or upgrading packages.









Deb install command line