Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-20-2004, 11:37 AM
|
#1
|
|
Member
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72
Rep:
|
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
|
|
|
|
12-20-2004, 12:03 PM
|
#2
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
You can just stick them on a CD, but you have to create a repository, Heres Debian Repository HOWTO.
|
|
|
|
12-20-2004, 07:12 PM
|
#3
|
|
Member
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72
Original Poster
Rep:
|
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.
|
|
|
|
12-20-2004, 08:32 PM
|
#4
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
|
12-21-2004, 01:36 AM
|
#5
|
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:26 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|