LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-12-2009, 01:57 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
how to know which files have been downloaded during installation


hi I am using ubuntu-9.04 64 bit version.I ran the command'sudo apt-get install ffmpeg'
output was

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavcodec52 libavdevice52 libavfilter0 libavformat52 libavutil49 libdc1394-22 libpostproc51 libswscale0
The following NEW packages will be installed:
ffmpeg libavcodec52 libavdevice52 libavfilter0 libavformat52 libavutil49 libdc1394-22 libpostproc51 libswscale0
0 upgraded, 9 newly installed, 0 to remove and 249 not upgraded.
Need to get 2970kB of archives.
After this operation, 7721kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com jaunty/main libavutil49 3:0.svn20090303-1ubuntu6 [58.5kB]
Get:2 http://in.archive.ubuntu.com jaunty/main libavcodec52 3:0.svn20090303-1ubuntu6 [1956kB]
Get:3 http://in.archive.ubuntu.com jaunty/main libavformat52 3:0.svn20090303-1ubuntu6 [363kB]
Get:4 http://in.archive.ubuntu.com jaunty/main libdc1394-22 2.0.2-1 [105kB]
Get:5 http://in.archive.ubuntu.com jaunty/main libavdevice52 3:0.svn20090303-1ubuntu6 [53.8kB]
Get:6 http://in.archive.ubuntu.com jaunty/main libavfilter0 3:0.svn20090303-1ubuntu6 [42.8kB]
Get:7 http://in.archive.ubuntu.com jaunty/main libpostproc51 3:0.svn20090303-1ubuntu6 [51.7kB]
Get:8 http://in.archive.ubuntu.com jaunty/main libswscale0 3:0.svn20090303-1ubuntu6 [102kB]
Get:9 http://in.archive.ubuntu.com jaunty/main ffmpeg 3:0.svn20090303-1ubuntu6 [236kB]
Fetched 2970kB in 1min 5s (45.2kB/s)
Selecting previously deselected package libavutil49.
(Reading database ... 101349 files and directories currently installed.)
Unpacking libavutil49 (from .../libavutil49_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package libavcodec52.
Unpacking libavcodec52 (from .../libavcodec52_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package libavformat52.
Unpacking libavformat52 (from .../libavformat52_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package libdc1394-22.
Unpacking libdc1394-22 (from .../libdc1394-22_2.0.2-1_amd64.deb) ...
Selecting previously deselected package libavdevice52.
Unpacking libavdevice52 (from .../libavdevice52_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package libavfilter0.
Unpacking libavfilter0 (from .../libavfilter0_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package libpostproc51.
Unpacking libpostproc51 (from .../libpostproc51_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package libswscale0.
Unpacking libswscale0 (from .../libswscale0_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Selecting previously deselected package ffmpeg.
Unpacking ffmpeg (from .../ffmpeg_3%3a0.svn20090303-1ubuntu6_amd64.deb) ...
Processing triggers for man-db ...
Setting up libavutil49 (3:0.svn20090303-1ubuntu6) ...
Setting up libavcodec52 (3:0.svn20090303-1ubuntu6) ...
Setting up libavformat52 (3:0.svn20090303-1ubuntu6) ...
Setting up libdc1394-22 (2.0.2-1) ...
Setting up libavdevice52 (3:0.svn20090303-1ubuntu6) ...
Setting up libavfilter0 (3:0.svn20090303-1ubuntu6) ...
Setting up libpostproc51 (3:0.svn20090303-1ubuntu6) ...
Setting up libswscale0 (3:0.svn20090303-1ubuntu6) ...
Setting up ffmpeg (3:0.svn20090303-1ubuntu6) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

Say I want to install ffmpeg on similiar but networkless computer then which files I will need & will the commands be "deb -i file.deb".

Last edited by sumeet inani; 10-12-2009 at 08:12 AM.
 
Old 10-12-2009, 02:54 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could try
Code:
cannabis:/home/repo# apt-cache depends ffmpeg
ffmpeg
  Depends: libavcodec52
  Depends: libavdevice52
  Depends: libavfilter0
  Depends: libavformat52
  Depends: libavutil50
  Depends: libc6
  Depends: libpostproc51
  Depends: libsdl1.2debian
  Depends: libswscale0
  Suggests: nvidia-libvdpau1
cannabis:/home/repo#
The command to install a deb file is
Code:
dpkg -i foo.deb

Last edited by repo; 10-12-2009 at 02:56 AM.
 
Old 10-12-2009, 08:11 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
To repo
Okay i tried to search *.deb files in / but no result.Where can i find the files that were downloaded because as you can see in my previous post the links end up nowhere.
 
Old 10-12-2009, 08:21 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
They are in
Quote:
/var/cache/apt/archives
You need to use
Code:
find / -name "*.deb"
 
Old 10-12-2009, 08:47 AM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
to repo
Sorry for asking such a stupid question previously.
i found the .deb files then if I install them in order they have been downloaded using 'dpkg -i packagename'.then the software will get installed on networkless machine.is it true or there are some settings which apt-get does?
 
Old 10-12-2009, 08:50 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can install them on the networkless machine.
cd to where the files are on the machine and type:
Code:
dpkg -i *.deb
 
Old 10-12-2009, 09:22 AM   #7
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Is there a way I can get the file-names that will be installed during software installation before downloading begins.
 
Old 10-12-2009, 09:27 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Code:
apt-get -s install packagename
see
Code:
man apt-get
 
Old 11-10-2009, 12:22 AM   #9
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Solution for all

SOLUTION FOR ALL
This is compilation of all useful suggestions from various members.
Run all commands below as ROOT
(1)if you want to know what packages will be installed before downloading anything
apt-get install -s software_name
You can even download them from somewhere else & install on your computer offline using step 3.For ubuntu search site is https://launchpad.net/ubuntu/
(2)If you want to save downloaded debian files so that in future you can install software without internet ( recommended to be done since fresh install so that you can track system changes from start )
(a)run 'apt-get install software_name'(without quotes as usual)
(b)copy debian files from /var/cache/apt/archives.Put those files in folder 'software_name' in your backup-partition.Now run 'rm /var/cache/apt/archives/*.deb'(without quotes).
(3)Now whenever you want to install that software again.Just copy debian files to /var/cache/apt/archives & run 'apt-get install software'(as usual).Thus you will not trouble server to download everytime.

Alternative
I even found out way to install software on machine which never ran 'apt-get update' hence 'apt-get install softwareName' would give 'No installation candidate' error.
Fear not.
Look at 7th post on http://www.linuxquestions.org/questi...mputer-778601/ (sumeet's third)


If this helps you Please thank me by pressing thumbs up button(in the same way I have thanked suggestions found useful).Thank You.

Last edited by sumeet inani; 01-04-2010 at 05:34 AM.
 
Old 11-10-2009, 12:27 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Sounds like you are doing things the hard way. Have a look at apt-offline.

Code:
apt-cache show apt-offline
for details.

Cheers,

Evo2.
 
Old 11-10-2009, 01:02 AM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Quote:
Originally Posted by evo2 View Post
Sounds like you are doing things the hard way. Have a look at apt-offline.

Code:
apt-cache show apt-offline
for details.

Cheers,

Evo2.
Actually I was trying to save downloaded debian files to safe location in case user uninstalls the software or reinstalls OS(here /var/cache folder will be rebuilt).How does your command help?
 
Old 11-10-2009, 01:11 AM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by sumeet inani View Post
Actually I was trying to save downloaded debian files to safe location in case user uninstalls the software or reinstalls OS(here /var/cache folder will be rebuilt).How does your command help?
Well that's quite random...
I had no intention of try to help with your tangent. If you want to post something off topic, start a new thread.

The original post wanted to know how to install the the same packages on a machine not connected to the network as they had on a network connected machine. That is what apt-offline is for.

Anything else you would like to know?

Evo2.

Last edited by evo2; 11-10-2009 at 01:16 AM. Reason: typo
 
Old 11-10-2009, 01:42 AM   #13
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Quote:
Originally Posted by evo2 View Post
Sounds like you are doing things the hard way. Have a look at apt-offline.

Code:
apt-cache show apt-offline
for details.

Cheers,

Evo2.
I tried this command.the output was

W: Unable to locate package apt-offline
E: No packages found

I also checked man page of apt-cache.It does not contain the word 'offline'.
 
Old 11-10-2009, 02:01 AM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by sumeet inani View Post
I tried this command.the output was

W: Unable to locate package apt-offline
E: No packages found
Ok, seems that Ubuntu, in its wisdom, decided not to package it (ie. pull from Debian). Perhaps it's in the Universe repo (or whatever it is called).

Quote:
Originally Posted by sumeet inani View Post
I also checked man page of apt-cache.It does not contain the word 'offline'.
"apt-offline" is the name the package. "apt-cache" is just a command for querying the apt database. You can get information about a package (assuming apt knows about it) with:

Code:
apt-cache show packagename
See the following links for info about apt-offline.

http://apt-offline.alioth.debian.org/
http://packages.debian.org/sid/apt-offline

Cheers,

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are my downloaded files? Instantly Linux - Newbie 5 06-30-2007 04:30 AM
How do you get to the files you downloaded. Lord Hakk Linux - Newbie 8 03-23-2006 02:26 AM
when .tgz files are downloaded they turn into .tar files?!?! Flz Slackware 10 12-20-2005 02:32 PM
Using urpmi - where do the downloaded files go ? PeteHeyes Linux - Newbie 4 12-06-2004 11:03 AM
Konqueror downloaded files escordeiro Linux - Software 3 09-21-2003 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration