LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-20-2004, 11:37 AM   #1
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Rep: Reputation: 15
make my own package cd (or sarge cd)


hello, this probably has been asked before, but I didn't find anything
I have a lot of packages in /var/cache/apt/archives and I would like to put them in a cd so I don't have to download them again if I have to reinstall
so, my question is do I just put then on the cd or do I need something else in order to use it as a source for apt-get?
can I put them in the same cd with the sarge installer so I can install my whole system with just one cd?


thanx
 
Old 12-20-2004, 12:03 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
You can just stick them on a CD, but you have to create a repository, Heres Debian Repository HOWTO.
 
Old 12-20-2004, 07:12 PM   #3
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Original Poster
Rep: Reputation: 15
thaks a lot!!
that's what I was looking for

so, if I want to put them in the same cd as the sarge installer I have to create a source folder and put it in the cd, then edit my sources.list to point to that specific folder?
am I right?

BTW, is there any apt-get command that will install everything inside a folder?

Last edited by drawhla; 12-20-2004 at 07:13 PM.
 
Old 12-20-2004, 08:32 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
I was thinking about what you want, and theirs a simpler solution. To simply install debs you have it would be quite simple to use the dpkg command direct.

dpkg -i /mnt/cdrom/*.deb

Would install all the debs in the /mnt/cdrom/ directory. The advantage of a repository is you can be selective with apt-get, but if you just want them all then dpkg is all you need.

The only problem I can think of is dependancies which means forcing the install if they depend only on other packages your installing, but if they rely on something you've not installed you'll have problems.
 
Old 12-21-2004, 01:36 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
To allow apt to use the cd I use the following method;
1. Create a new directory - /debs
2. copy the archive files to debs
3. create the Packages.gz that tells apt what packages are on the cd by doing from / (i.e. cd /);
dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz
4. burn /debs to a cdrom

apt will then recognise the cd and you can use the "apt-cdrom add" option

Last edited by TigerOC; 12-21-2004 at 01:37 AM.
 
  


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
Downloading All Debian Sarge Package Files BillyGalbreath Debian 4 11-26-2005 11:00 PM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
removing package with unmet dependencies in Sarge killy9999 Debian 6 09-08-2005 12:42 PM
Cinelerra on Sarge: E: Broken package juanjavier_xxx Debian 7 07-16-2005 02:40 PM
package selection in Sarge jughead Debian 2 06-14-2005 01:45 PM


All times are GMT -5. The time now is 12:40 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