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 - 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 05-22-2008, 09:06 AM   #1
babypeng
Member
 
Registered: Nov 2007
Distribution: Puppy
Posts: 45

Rep: Reputation: 15
difficulties configuring a local repository


Hello All,

I have difficulties configuring a local repository.

I installed Debian net-inst on a PC that doesn't have internet access.

I then downloaded the full installation DVD's (3 DVD's)
using Jigdow.
I am trying to set the 1st DVD as a local repository.
I ran the dpkg-scanpackages command on the cd and created
the .gz file which I called packages-dvd1.gz
The exact command I ran is:
dpkg-scanpackages /media/cdrom0 /dev/null | gzip -9c > /usr/local/bin/packages/packages-dvd1.gz

I put the .gz file in: /usr/local/bin/packages .

I also added the line: deb file:/usr/local/bin/packages ./
to the sources.list file and ran the command: apt-get update.
The apt-get update command gives a message that it can't
find the file /usr/local/bin/packages/packages.gz
and it doesn't say anything about packages-dvd1.gz .

But I didn't name my packages file: "packages.gz",
I named it: "packages-dvd1.gz" .

My questions are:

1.
Must the packages.gz file be where the actual packages are
- on the DVD ?

If yes then how do I put it on the DVD, since the DVD is a downloaded
.iso image ?
and in which directory on the DVD ?


2.
Must the packages.gz file be named with this name (packages.gz)
and not any other name ?
Or is it possible to name it: packages-dvd1.gz ? (like I did)


3.
What is the meaning of the " ./ "
at the end of the line that I added to the sources.list:
deb file:/usr/local/bin/packages ./



Any help appreciated.

Babypeng
 
Old 05-22-2008, 10:55 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
did you follow the Debian repository how-to ?

and if you already have the DVD"s you can simply add them to your sources list with apt-cdrom add (section 2.4)
 
Old 05-22-2008, 03:03 PM   #3
babypeng
Member
 
Registered: Nov 2007
Distribution: Puppy
Posts: 45

Original Poster
Rep: Reputation: 15
Is apt-cdrom included with net-inst ?

Is apt-cdrom included with net-inst ?

Thx for the reponses,

Babypeng
 
Old 05-22-2008, 03:53 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
well you wouldn't typically use a netinstall.iso to install a machine that isn't connected to the internet. Once the base system is installed apt-cdrom should be available.

If you have the CDROM/DVD to add as a source then why wouldn't you just use it to install the system to begin with.. ???
 
Old 05-23-2008, 05:23 PM   #5
babypeng
Member
 
Registered: Nov 2007
Distribution: Puppy
Posts: 45

Original Poster
Rep: Reputation: 15
adding stuff to net-inst

Here's the full story:

Downloading net-inst was easier and faster then anything else,
and I was lazy.
I burned it on a cd and installed on a computer without internet connection.
net-inst doesn't have any gui on it and I want to install gnome.
I realised I have no choice but to struggle with Jigdo and download
the full installation dvd.
So now I have a basic net-inst install to which I want to add stuff
from the full dvd that I have, and for this purpose I am trying to configure the dvd as a local repository.

I didn't try apt-cdrom yet.
I'll try it and if I fail I'll post for help.

The whole purpose is to learn how to do it, so I don't want
to erase the net-inst and reinstall from a dvd.
I want to do everything the hard way, so one day
I'll stop calling myself "newbie".

Thx for the help,
This forum is very helpful and I appreciate it alot.

Babypeng
 
  


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
Configuring Wireless Internet using Network Configuration Window difficulties jeriryan Red Hat 2 05-13-2008 06:19 PM
local repository abd_bela Solaris / OpenSolaris 1 01-12-2008 05:23 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM
Difficulties configuring an MSN account with gAIM 0.75 TheOneKEA Linux - Software 7 03-10-2004 04:42 AM
difficulties to parameter local net christophe.dr Linux - Networking 1 02-07-2004 03:26 PM

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

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