Jump to content
shovanadhikary

how to install already downloaded softwares in ubuntu 12

Recommended Posts

Can tell me as to how do I install softwares already downloaded in ubuntu 12.04.....ubuntu is such a pain in the ass....I have downloaded several set up files of softwares from the net ...but cant install any...someone please help

Share this post


Link to post
Share on other sites

I don't mind U asking us here but this information is easily found on Google. I am only telling U so that U can get the info U need faster & not be waiting on us 2 respond.

Here is the search quarry I used 4 Google ::: install downloaded package on ubuntu

This answer is from the first result Google gave me.

Here U go Boss, I just ripped it from another site this is not my info

Installing downloaded packages

 

You may wish to install a package you have downloaded from a website, rather than from a software repository. These packages are called .deb files. Because they may have been created for a different Linux distribution, you might find that there's dependency issues with Ubuntu, meaning that they may be uninstallable.

To find a package which you have previously downloaded using Synaptic, aptitude or apt-get, look in /var/cache/apt/archives

 

Using GDebi to install packages

 

GDebi is a simple tool to install .deb files. It has a graphical user interface but can also be used in your terminal. It lets you install local deb packages resolving and installing its dependencies.. It automatically checks packages for their dependencies and will try to download them from the Ubuntu software repositories if possible. You may first need to install GDebi - simply install the gdebi package using one of the package managers listed above, or open a Terminal and type sudo apt-get install gdebi.

Once you have installed GDebi, use the File Browser to find the package you wish to install. Package files will look similar to this:

f79b94773c.png

Double-click the package to open it with GDebi. If all dependencies have been met for the selected package, simply click the 'Install package' button to install it. GDebi will warn you if there are unmet dependencies, which means that there's dependencies that aren't resolved in the repositories that you're using.

 

Using dpkg to install packages

 

dpkg is a command-line tool used to install packages. To install a package with dpkg, open a Terminal and type the following:

 

cd directory

sudo dpkg -i package_name.deb

Note: replace directory with the directory in which the package is stored and package_name with the filename of the package.

It is recommended that you read the dpkg manual page before using dpkg, as improper use may break the package management database. To view the manual page for dpkg, open a Terminal and type man dpkg.

 

Getting a list of recently installed packages

 

You can also use the dpkg logs to discover recently installed packages; this is handy if you want to roll back some recent installations to a previous system state.

 

zcat -f /var/log/dpkg.log* | grep "\ install\ " | sort

More detailed information on this can be found here.

 

Automatic updates: Update Manager

 

Ubuntu will automatically notify you when security updates and software upgrades are available. The Ubuntu Update Manager is a simple and easy to use application that helps users to keep their system software updated. Simply click the update icon (which will appear in the notification area), type in your super-user/administrator password and follow the instructions on-screen to download and install the updates.

Keeping up to date is important, as security fixes which protect your computer from harm are delivered in this way.

 

7f5aedc8c6.png

 

Installing packages without an Internet connection

 

Sometimes, an internet connection is unavailable to install programs. Here are the methods proposed by the official Ubuntu documentation: hxxps://help.ubuntu..../C/offline.html

But it is also possible to do it without CDs or DVDs, using a simple USB key for example to transfer only the packages you need. Here are two methods to do this:

 

Use Keryx

 

Keryx is a portable, cross-platform package manager for APT-based (Ubuntu, Debian) systems. It provides a graphical interface for gathering updates, packages, and dependencies for offline computers. Keryx is free and open source. You can get Keryx here: hxxp://keryxproject.org/

 

Use the Synaptic package download script

 

Here's how: Synaptic/PackageDownloadScript

Short instructions:

  • Launch Synaptic on the offline computer
  • Mark the packages you wish to install
  • Select File->Generate package download script
  • Save the script to your USB key
  • Take the USB key to an online Linux computer and run the script there from the USB key. It will download only the packages required by the offline computer to the USB key.
  • Insert the USB key into the offline computer
  • Launch Synaptic and click on File->Add downloaded packages
  • Select the directory on your USB key containing the downloaded *.deb files and press Open. The packages will be installed.

Note: If you don't have access to a PC with GNU/Linux or emulating/virtualizing GNU/Linux (Cygwin, VMware, VirtualBox, Qemu, etc), just open the script with a text editor and enter all the URLs you see in your browser to download the corresponding packages.

If you have all the necessary libraries and/or dependencies, the simplest way is of course to just download the .deb package you need, just as you would with a Windows installer, and double-click the package to install it with GDebi.

All Ubuntu packages are available on hxxp://packages.ubuntu.com/ and hxxp://www.debian.org/distrib/packages .

 

Offline apt-get update

 

If you can't even select the packages on your offline PC because you can't add the repository / update the package info, try this: AptGet/Offline/Repository

Basically, it consists in creating your own local repository, except that it won't contain the packages themselves, only the dependency information.

The problem is that when you generate the package download list using this method, it will try to get the packages from your local repository and obviously fail.

The solution is to post-process the script by replacing the URLs with the correct one.

Assuming you created the local repository at "/home/username/repository" and got the different files from "http://archive.ubuntu.com/ubuntu/", this can easily be done with the following command:

sed 's#file:///home/username/repository#http://archive.ubuntu.com/ubuntu#' download_script.sh > download_script2.sh

chmod +x download_script2.sh

or directly without creating a second script:

sed -i 's#file:///home/username/repository#http://archive.ubuntu.com/ubuntu#' download_script.sh

or simply with any text editor featuring search&replace.

See also: AptGet/Offline.

 

Use apt-offline

 

apt-offline allows you to easily upgrade or install new packages on your offline PC, by using another online PC.

sudo apt-get install apt-offline

 

Upgrading

  1. On the offline PC:

 

sudo apt-offline set /tmp/apt-offline.sig

  1. On the online PC:

 

sudo apt-offline get C:\apt-offline.sig --bug-reports --threads 5

  1. On the offline PC:

 

sudo apt-offline install /media/USB/apt-offline.zip

 

Installing

  1. On the offline PC:

 

sudo apt-offline set abuse-offline.sig --install-packages abuse --src-build-dep --install-src-packages abuse

  1. On the online PC:

 

sudo apt-offline get abuse-offline.sig --no-checksum --bundle abuse-offline.zip

  1. On the offline PC:

 

sudo apt-offline install /media/USB/abuse-offline.zip

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×