May 6, 2015 - When you use apt to install a package, internally it uses dpkg. Here's the best way to install a.deb file on Ubuntu on the command-line. This will download all installed packages to folder /var/cache/apt/archives.
And you’ll have a complete Ubuntu environment that lets you install and run the same applications you could run on an Ubuntu-based Linux system. Just like on Ubuntu, though, you’ll need the apt-get command to install and update software. Note that Windows 10’s Linux subsystem doesn’t officially support graphical applications or server software (though, unofficially). Officially, it’s intended for Linux terminal applications and other command-line utilities developers might want. Windows 10’s Bash shell only supports 64-bit binaries, so you can’t install and run 32-bit Linux programs. Apt-get Explained On Ubuntu and other Debian-based Linux distributions, you use the apt-get command to install software. “Apt” stands for “Advanced Package Tool”.
This command downloads software packages from Ubuntu’s centralized software repositories and installs them on your system. If the packages you try to install require–or “depend on”–other packages, apt-get will automatically download and install those packages (known as dependencies) as well. Apt-get works with “.deb” packages, named for Debian, the Linux distribution Ubuntu is based on. You’ll need to run apt-get along with the “” command, which gives it superuser, or root, permissions. This allows the command to modify and install system files in the Linux environment. You’ll have to enter your current user account’s password when you use sudo. You can also instead of the traditional apt-get command, although either command will work.
![Install Install](https://i.ytimg.com/vi/6TswOnx3cL4/maxresdefault.jpg)
![Install package ubuntu command line Install package ubuntu command line](https://tr2.cbsistatic.com/hub/i/2016/08/09/57d979b9-eeea-41c7-8c68-8eef2e345313/ubuntuservera.jpg)
How to Download Updated Package Lists First, you’ll want to run the following command to download up-to-date package lists from the software repositories: sudo apt-get update You’ll want to do this before you install any package. How to Install a Package If you know the name of a package you want to install, you can download and install it with the following command, replacing “packagename” with the name of the package you want to install: sudo apt-get install packagename For example, if you wanted to install Ruby, you’d run the following command: sudo apt-get install ruby You can press the Tab key while typing the name of a package (or any command) to use Bash’s, which will help you automatically finish typing things and suggest available options, if multiple options are available. After running this and other apt-get commands, you’ll be presented with the changes that will be made and you’ll have to type “y” and press Enter to continue. How to Search for a Package You may not always know the name of the package you want to install. In this case, you can use the apt-cache command to search your downloaded package cache (the lists that were download with apt-get update) for a program. This command searches package names and descriptions for the text you specify. This command doesn’t require sudo, as it’s just a simple search.