install not only copies files but also changes its ownership and permissions and optionally removes debugging symbols from executables. It combines cp with chown, chmod and strip. It's a convenient higher-level tool to that accomplishes a common sequence of elementary tasks.
An advantage of install over cp for installing executables is that if the target already exists, it removes the target file and creates a new one. This gets rid of any current properties such as access control lists and capabilities, which can be seen both as an upside and as a downside. When updating executables, if there are running instances of this executable, they keep running unaffected. In contrast, cp updates the file in place if there is one. On most Unix variants, this fails with the error EBUSY¹ if the target is a running executable; on some it can cause the target to crash because it loads code sections dynamically and modifying the file causes nonsensical code to be loaded.
install is a BSD command (added in 4.2BSD, i.e. in the early 1980s). It has not been adopted by POSIX.
¹ “Text file busy”. In this context, “text file” means “binary executable file”, for obscure historical reasons.
Answer from Gilles 'SO- stop being evil' on Stack Exchangemake - What is the purpose of the 'install' command? - Unix & Linux Stack Exchange
Installing software via the Linux command line....
Instaling programs with the terminal
How is it easier to install software on Linux via the terminal than it is to install on Windows?
Videos
I have recently made the move from Windows to Linux and I am just trying to find my feet. Are there any good guides to installing desktop software and how exactly to go about it. I am aware its a different process to Windows (which is just click and run). Some sort of beginners guide would be great Using Ubuntu 17.10
install not only copies files but also changes its ownership and permissions and optionally removes debugging symbols from executables. It combines cp with chown, chmod and strip. It's a convenient higher-level tool to that accomplishes a common sequence of elementary tasks.
An advantage of install over cp for installing executables is that if the target already exists, it removes the target file and creates a new one. This gets rid of any current properties such as access control lists and capabilities, which can be seen both as an upside and as a downside. When updating executables, if there are running instances of this executable, they keep running unaffected. In contrast, cp updates the file in place if there is one. On most Unix variants, this fails with the error EBUSY¹ if the target is a running executable; on some it can cause the target to crash because it loads code sections dynamically and modifying the file causes nonsensical code to be loaded.
install is a BSD command (added in 4.2BSD, i.e. in the early 1980s). It has not been adopted by POSIX.
¹ “Text file busy”. In this context, “text file” means “binary executable file”, for obscure historical reasons.
It provides a standardized way of manipulating a file's or directory's ownership and permissions while copying the file or creating the directory, in a single command.
Witha tar.gz generally just decompress it to the folder you want it installed in such as /usr/bin or /usr/sbin, etc… However, in this case it looks like the linux version of putty is already in a repository so you should not be using a targz you would be better serves using the package manager in Debian apt. Using apt-get install, see for putty from repositories. How to Install PuTTY on Ubuntu Linux | Numato Lab Help Center
When installing software from the command line via tar I’ve never paid attention to what directory I’m doing it from…always did it from the “Downloads” directory…I’d like to know what is the appropriate procedure for installing software via the command line…I’d like to install puTTY, the terminal emulator, which I’ve downloaded and is currently in the “Downloads” directory as a .tar.gz file…should I install it from there, move it to /tmp, or some other directory more appropriate for doing installs?? Thanks…
Use dpkg - package manager for Debian.
dpkg -i yourpackage.deb to install a package.
Navigate to the folder containing the package
cd Desktop/System\ Files/
Type ls to get a list of files in the current directory to be sure you're in the right place
Then dpkg -i PotatoKiller3000.deb to install.
You can install applications different ways. Terminal, the Ubuntu Software Center, and Synaptic.
With the Ubuntu Software Center, you just open it from the Launcher, and search for the application that you want.
If you know the right commands to install via terminal, then you'd just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, you can run the command(s) needed to install the application.
For synaptic, it has to be installed on you system. To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
sudo apt install synaptic
Once installed, you can open it, and search for the application that you want to install, and just mark it for installation.
Also in some cases, you have to download either a .deb file in case of your question about Chrome, and have to manually install it, or a .tar.gz file, and that also have to done manually.
Now as far as Chrome is concerned, you can install it by downloading the .deb file, or just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
For 32bit
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
sudo dpkg -i google-chrome-stable_current_i386.deb
For 64bit
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
If you encounter any error during the installation, when its done do
sudo apt -f install
For pros and cons of the different ways to install see this Post.
Source for Chrome installation: Google
Addition
Installing software in Ubuntu can be done several ways:
Ubuntu Software Center
You can search for an application, or go through the categories:

Synaptic Package Manager
You can search for an application, or go through the categories:

Installing via Terminal
Installing from terminal can be done in several ways:
APT
You can search for an application. The command to search for software is:
apt search <application_name>
Adding Repositories:
Edit the sources list file, and add
sudo -H gedit /etc/apt/sources.list
Or add from terminal
sudo add-apt-repository <repository_name>
sudo apt update
sudo apt install <application_name>
Others ways you can install
Manual download of a .deb (Debian package):
- Once downloaded, you can double-click on the package to have it open in the Software Center, from where you can install it.
Or, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the download location, and run the command(s) below:
sudo dpkg -i <package_name>.deb
Other options:
.rpmfiles are packaged for Fedora or Mandriva, but you can usealien(you can install using Synaptic) that allows you to convert.rpmfiles to.deb. (may not work all the time).tar.gzfiles are compressed. If you see the.tar.gz, it could be compressed files that have a pre-compiled binary file, or files that have the source code allowing you to compile the application from source. To find out how to install from a.tar.gz, see How to install from a .tar.gz.
For more info see Installing Software, or A beginners guide to installing programs in Ubuntu
There are many ways to install packages in Ubuntu. I will try to list the most used methods, giving links to detailed explanations for each one.
Installing packages with an internet connection
1. Installing packages via your web browser
The APT protocol (or apturl) is a very simple way to install a software package from a web browser.
2. Installing packages via a basic graphical method
Ubuntu Software Center is a one-stop shop for installing and removing software on your computer.
3. Installing packages via an advanced graphical method
Synaptic is a graphical front-end to apt, the package management system in Ubuntu.
4. Installing packages via text based methods
- Aptitude - the text-based method
- apt-get - the technical method
Installing packages without an internet connection
1. Using Keryx
Keryx is a portable, cross-platform package manager that provides a graphical interface for gathering updates, packages, and dependencies for offline computers.
2. Using the Synaptic package download script
Synaptic package manager has built-in feature to generate a package download script.
3. Using apt-offline
apt-offline is an offline text based apt package manager.
4. Installing downloaded packages
- .deb packages (here fits the part from the question relating to the installation of Google Chrome)
- .tar.gz and .tar.bz2 packages
- .rpm packages
Source: https://help.ubuntu.com/community/InstallingSoftware
In the terminal I chose directory and did: "sudo apt-get intall *.deb"
Here there are two problems:
- intall is misspelled, it should be
install apt-getwill install local packages if a path is provided in the way of ./package.deb or /path/to/package.deb
This should achieve the desired result
sudo apt-get install ./*.deb
This will install the packages and any dependency needed if it can find them.
To install a.deb file you need to do the following commands on terminal,
cd /path/to/the/directory/contains/filename.deb
sudo dpkg -i filename.deb
To install all the .deb files from a directory,you can try
cd /path/to/the/directory/contains/.deb files
sudo dpkg -i *.deb
So I just typed "sudo apt install nodejs" ... great it did it for me..but how did it find it?
What if there are many versions? How does it get the right one?
What if somebody else made a program called "nodejs" how does it know what is the right one?