LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 49
Installing ffmpeg on standalone computer


I wanted to install software on ubuntu 8.04 on networkless computer.
So I got the debian files & copied them to /var/cache/apt/archives
Then I ran
#apt-get install ffmpeg

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ffmpeg has no installation candidate

Then I ran
#apt-cache pkgnames
Among these I found ffmpeg.
I edited /etc/apt/sources.list
Commented cdrom & uncommmented lines beginning with deb or deb-src
Still not solved.

I ran ( after connecting to internet )
#apt-get update;apt-get install ffmpeg
It worked.
(Question)What should I do so that software install possible without internet connection ( obviously needed debian files I have ) ?
I have noticed that OS downloads gpg of security,updates & packages.gz files from repository.

Last edited by sumeet inani; 12-28-2009 at 10:56 PM.
 
Old 12-28-2009, 10:58 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
You need to get each and every needed dependencies. then
Quote:
sudo dpkg -i *.deb
 
Old 12-28-2009, 11:04 PM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I do it this way presently but I want to copy the required debian files to /var/cache/apt/archives then let system install them in required order without me bothering about it.
Actually after apt-get update I copied required debian files to /var/cache/apt/archives & ffmpeg installation occured without downloading a single byte.
But What is alternative of apt-get update ?
 
Old 12-28-2009, 11:15 PM   #4
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
apt-get update only updates/refreshes your repository lists.
apt-get upgrade , upgrades your currently installed packages.
 
Old 12-28-2009, 11:44 PM   #5
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
If you have a computer with no internet access you could look into using "apt-offline". This will allow you to get the required packages with another computer which is connected.

Also look at: this

Regards,
Stefan
 
1 members found this post helpful.
Old 12-29-2009, 01:36 AM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
to propofol
http://www.debian.org/doc/manuals/ap...g-scanpackages
was very useful.Thank you.
 
Old 12-31-2009, 12:16 AM   #7
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
TIP FOR ALL USERS TO INSTALL OFFLINE.ALTERNATIVE TO APTONCD.ESPECIALLY IF COMPUTER HAS NEVER BEEN ONLINE (like mine) so no chance of 'apt-get update'
(0)for 'dpkg-scanpackages' get debian files libtime*,patch*,dpkg-dev* files from iso & do 'dpkg -i' on all three one by one.
(1)Whenever I want to install a software on standalone computer then I get required debian files (if you also want to know link of debian files so that you can 'wget' them then see TIP at the end ) & copy them to /root/debs
(2)I comment all lines in /etc/apt/sources.list and add
deb file:/root debs/
(3)now run
Code:
#cd /root;dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz;apt-get update >/dev/null
(4)#apt-get install softwareName
Advantage is
(1)i got debian ffmpeg files from medibuntu and .deb file for gstreamer0.10-ffmpeg,gstreamer0.10-plugins-ugly,gstreamer0.10-plugins-bad,build-essential
NOTE:-In conflict of common files between gstreamer & medibuntu.The later prevails.
(2)Now i install ffmpeg,gstreamer0.10-ffmpeg,gstreamer0.10-plugins-ugly,gstreamer0.10-plugins-bad so that
I get all audio video files playing (by default in totem) and ffmpeg can transcode to all formats(that is why medibuntu was preferred).

TIP
I get packages.gz and sources.gz from http://us.archive.ubuntu.com/ubuntu/dists/<your distroname>/<main,multiverse,restricted,universe>/<binary-i386,source>
and store them in folders main,multiverse,restricted,universe in /root then add required lines to /etc/apt/sources.list. Thus a computer can install softwares without smelling internet ever.
If you find this post useful than thank me by pressing thumbs up button ( in the same way I have thanked useful posts ) .Thank you.

Last edited by sumeet inani; 02-10-2010 at 02:50 AM.
 
0 members found this post helpful.
Old 12-31-2009, 12:58 AM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
question
i wanted to install build-essential from cdrom (without using physical disk) by mounting iso image to /cdrom.
But
#apt-get install build-essential
says press enter when media inserted.
How can we use iso file to tell system that cdrom is in place ?

Last edited by sumeet inani; 12-31-2009 at 11:41 PM.
 
0 members found this post helpful.
Old 12-31-2009, 11:39 PM   #9
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Please see my previous unanswered question also
(Question) I want the computer to keep Packages.gz offline.so i downloaded
http://us.archive.ubuntu.com/ubuntu/dists/hardy/<type>/source/
http://us.archive.ubuntu.com/ubuntu/dists/hardy/<type>/binary-i386/source/
& stored them in local folders.Is it correct ?
I know that dpkg-scanpackages will give error of debian files not found.
I am not interested in updating my distro.
Main thing is there were other options like debian-installer,installer-i386.
Which one is suitable for apt-get ?
My computer is 32bit.

Last edited by sumeet inani; 12-31-2009 at 11:41 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Installing glibc as standalone nazzzia Linux - Newbie 0 04-12-2007 05:44 PM
Problems using Winetools on a standalone computer yekrahs Linux - Software 1 10-13-2006 02:07 AM
Installing standalone linux programs leecming Linux - Newbie 2 06-09-2004 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 PM.

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