Re: [SLUG] souces.list for packages stored locally

2004-06-16 Thread Richard Hayes
On Tue, 15 Jun 2004 08:22 am, Alexander Samad wrote:
 On Tue, Jun 15, 2004 at 02:30:18PM +1000, Roger Barnes wrote:
   On Tue, 15 Jun 2004, Roger Barnes wrote:
I think you need to point at a directory, not a particular

 package apt-move setups up the right structure

  The debian-user thread below may provide some clues:
  http://lists.debian.org/debian-user/2003/11/msg00617.html
 
  Short of running dpkg-scanpackages, you may be stuck with using dpkg -i
  instead of apt-get install



To set up a local debian cache of deb files that you've created or downloaded 
separately:

  # mkdir -p /usr/local/cache/dists/local/local/binary-i386
  # cp *.deb /usr/local/cache/dists/local/local/binary-i386
  # cd /usr/local/cache
  # dpkg-scanpackages dists/local/local/binary-i386 /dev/null \
  $ dists/local/local/binary-i386/Packages

Then add the following line to /etc/apt/sources.list:

  deb file:/usr/local/cache local local

http://www.togaware.com/linux/survivor/Cache_Packages.shtml
-- 
Richard Hayes
Nada Marketing 
2/713 Pacific Hwy Gordon Australia 2072
Phone:+(61-2) 9418 4545 Fax:+(61-2) 9418 4348 Mob:+(61) 0414 618 425
http://www.nada.com.au 
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] souces.list for packages stored locally

2004-06-15 Thread Alexander Samad
On Tue, Jun 15, 2004 at 02:30:18PM +1000, Roger Barnes wrote:
  On Tue, 15 Jun 2004, Roger Barnes wrote:
  
   I think you need to point at a directory, not a particular 
  deb.  man 
   sources.list suggests something like:
  
   deb file:/home/david/debian
  
  #apt-get update
  E: malformed line in sources list
  
  I know that's what the man page says, but I think it doesn't 
  tell the whole story. Sometimes man  pages tell fibs, or at 
  least not the whole story ;-)
 
 Yep, but I think it got us closer than before.  You caught me, I slipped in a fib 
 with my fingers crossed (hoping it would work), but I think there needs to be a 
 specfic directory structure that specifies release (eg testing, unstable), 
 architecture and so on.  apt-get, upon further inspection, seems to look for a 
 Packages.gz file to catalog what's available at each URI.
package apt-move setups up the right structure


 
 The debian-user thread below may provide some clues:
 http://lists.debian.org/debian-user/2003/11/msg00617.html
 
 Short of running dpkg-scanpackages, you may be stuck with using dpkg -i instead of 
 apt-get install
 
 - Rog
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] souces.list for packages stored locally

2004-06-14 Thread David

What entry should I put in my sources.list for packages that are stored
locally

eg:


/home/david/debian/foo.deb


thanks..

David.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


RE: [SLUG] souces.list for packages stored locally

2004-06-14 Thread Roger Barnes
I think you need to point at a directory, not a particular deb.  man sources.list 
suggests something like:

deb file:/home/david/debian

- Rog

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of David
 Sent: Tuesday, 15 June 2004 12:06 PM
 To: [EMAIL PROTECTED]
 Subject: [SLUG] souces.list for packages stored locally
 
 
 What entry should I put in my sources.list for packages that 
 are stored locally
 
 eg:
 
 
 /home/david/debian/foo.deb
 
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


RE: [SLUG] souces.list for packages stored locally

2004-06-14 Thread David


On Tue, 15 Jun 2004, Roger Barnes wrote:

 I think you need to point at a directory, not a particular deb.  man
 sources.list suggests something like:

 deb file:/home/david/debian

#apt-get update
E: malformed line in sources list

I know that's what the man page says, but I think it doesn't tell the
whole story. Sometimes man  pages tell fibs, or at least not the whole
story ;-)



 - Rog

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of David
  Sent: Tuesday, 15 June 2004 12:06 PM
  To: [EMAIL PROTECTED]
  Subject: [SLUG] souces.list for packages stored locally
 
 
  What entry should I put in my sources.list for packages that
  are stored locally
 
  eg:
 
 
  /home/david/debian/foo.deb
 
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


RE: [SLUG] souces.list for packages stored locally

2004-06-14 Thread Roger Barnes
 On Tue, 15 Jun 2004, Roger Barnes wrote:
 
  I think you need to point at a directory, not a particular 
 deb.  man 
  sources.list suggests something like:
 
  deb file:/home/david/debian
 
 #apt-get update
 E: malformed line in sources list
 
 I know that's what the man page says, but I think it doesn't 
 tell the whole story. Sometimes man  pages tell fibs, or at 
 least not the whole story ;-)

Yep, but I think it got us closer than before.  You caught me, I slipped in a fib with 
my fingers crossed (hoping it would work), but I think there needs to be a specfic 
directory structure that specifies release (eg testing, unstable), architecture and so 
on.  apt-get, upon further inspection, seems to look for a Packages.gz file to catalog 
what's available at each URI.

The debian-user thread below may provide some clues:
http://lists.debian.org/debian-user/2003/11/msg00617.html

Short of running dpkg-scanpackages, you may be stuck with using dpkg -i instead of 
apt-get install

- Rog
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] souces.list for packages stored locally

2004-06-14 Thread Ian Wienand
On Tue, Jun 15, 2004 at 12:05:43PM +1000, David wrote:
 What entry should I put in my sources.list for packages that are stored
 locally

If it's just one or two debs you need to use dpkg-scanpackages to
greate a Packages.gz file.  Explained at

http://www.debian.org/doc/manuals/repository-howto/repository-howto.html

If you need something for a few more packages and some level of
automation you can refer to  

http://www.gelato.unsw.edu.au/IA64wiki/SettingUpADebianRepository

-i
[EMAIL PROTECTED]
http://www.gelato.unsw.edu.au


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html