Originally Posted by harishankar
You should set up an FTP/HTTP/CD/DVD repository in the file
and then do an
sudo apt-get update
After that, you should be able to install any software with just
sudo apt-get install program
which will also download and install the dependencies correctly.
That's the correct way to use apt-get.
Otherwise you can install locally downloaded packages using dpkg directly as explained above.
That's the way to go (apt-get install) if you know the exact package name. If you don't, but do know word(s) that might be in the package name/description, try
apt-cache search keyword
apt-cache search firefox
returns a lot of packages that may or may not be what you're looking for; pipe the output to grep
and you can further narrow down your search. When you find what you're looking for, use the install command.
Manually downloaded .deb packages can be installed using
dpkg -i packagename.deb
from command line, or (usually) by simply opening them in your favourite file manager -- double-click or click once depending on how you've set up opening files. This should bring on the graphical user interface to a program that installs deb packages -- if not, use dpkg
on command line.
Easiest way of course, if you don't know exactly what you're looking for, is to use the graphical front-end to apt if one is available -- for example Synaptic on Ubuntu or Adept on Kubuntu (found at the menu). Remember to refresh package lists first when the program opens, then search for a package, mark it (or them) to be installed and apply your changes.