LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-04-2010, 03:21 PM   #1
replica88
Member
 
Registered: Nov 2009
Posts: 48

Rep: Reputation: 15
Installing packages from non-installation CD?


I want to install packages such as samba, openssh etc. from a CD rather than download it from the net each time I build a new machine.

I am able to install them from the installation CD after using the “apt-cdrom add” command but what I want to do is burn my own CD with only the packages I require and install from that.

I have put them on a CD, entered “apt-cdrom add” but get errors about the name of the disk, and a read error when copying package lists.

Can you help me out or direct me to any how-to’s?? I have done my googleing but was unable to find anything

Thanks
 
Old 01-04-2010, 03:28 PM   #2
replica88
Member
 
Registered: Nov 2009
Posts: 48

Original Poster
Rep: Reputation: 15
More detail regarding above post

root@Fileserver:~# apt-cdrom add
Using CD-ROM mount point /cdrom/
Unmounting CD-ROM
Waiting for disc...
Please insert a Disc in the drive and press enter
Mounting CD-ROM...
Identifying.. [38446286ebb3f68d6a836a61ffbe6c0a-2]
Scanning disc for index files..
Found 1 package indexes, 0 source indexes, 0 translation indexes and 0 signature s
Please provide a name for this Disc, such as âDebian 2.1r1 Disk 1â:
cd1
Name: 'cd1'
This disc is called:
'cd1'
Copying package lists...E: Read error - read (21 Is a directory)
 
Old 01-04-2010, 03:41 PM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
sudo apt-cdrom add -a -d /media/mount-point

though you may need to make sure the CD can act as a repository:
http://odzangba.wordpress.com/2006/1...-repositories/

Another approach is to set up one machine you own as an apt repository - and (temporarily) point your new builds at this one.
http://www.packtpub.com/article/crea...ror-apt-cacher
... apt-cacher only builds a mirror of the packages you install.

If you do a lot of the same sort of installs, you can create a custom install disk with all the files you need on it already.
https://help.ubuntu.com/community/In...DCustomization

Note: the disk name is not a problem, this is -
Quote:
Copying package lists...E: Read error - read (21 Is a directory)
... hmmm:
https://answers.launchpad.net/ubuntu...question/89863
http://ubuntuforums.org/showthread.php?t=53779
... though I suspect it is just that your CD does not have the stuff of a repo.

Last edited by Simon Bridge; 01-04-2010 at 03:54 PM.
 
1 members found this post helpful.
Old 01-04-2010, 03:54 PM   #4
replica88
Member
 
Registered: Nov 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge View Post
sudo apt-cdrom add -d /media/mount-point

though you may need to make sure the CD can act as a repository:
http://odzangba.wordpress.com/2006/1...-repositories/

Another approach is to set up one machine you own as an apt repository - and (temporarily) point your new builds at this one.
http://www.packtpub.com/article/crea...ror-apt-cacher
... apt-cacher only builds a mirror of the packages you install.

If you do a lot of the same sort of installs, you can create a custom install disk with all the files you need on it already.
https://help.ubuntu.com/community/In...DCustomization
Your first link looks like it hit the nail on the head, I will give it a go, Thanks
 
  


Reply

Tags
installing, packages


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE installation problem - can only select A series packages for installation Nylex Slackware 4 08-19-2010 02:15 PM
Base installation on Internet - problem on installing other packages satimis Arch 3 03-08-2007 08:22 AM
Installing packages from Fedora Core 6 cds after installation fara78 Fedora 4 01-01-2007 11:26 PM
Installing more packages from a dvd after default installation husham Linux - Newbie 4 11-03-2006 02:12 AM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration