Re: Dependencies in Dir w/ Many .deb Files

2004-07-25 Thread Lourens Steenkamp
Lourens replying to Kenneth Jacker <[EMAIL PROTECTED]> wrote:

>  I have a slow Internet connection at home.  :-(
>  
>  I can't yet use apt-zip since my home 'ppp' link still doesn't work
>  (non-"8 bit clean" issues) thus prohibiting me from updating the apt
>  database via the net.  :-(
>  
>  
>  So, in order to temporarily keep my home system current, I am doing
>  the following:
>  
>o  Updating my office system (both are running pretty much
>   the same configuration of 'sarge')
>  
>o Copying all the newly installed debs on the office machine from
>  /var/cache/apt/archive to removable media
>  
>o  Bringing that media home and copying the deb files to my home
>hard drive
>  
>o  Finally, I run "dpkg -i *.deb" on those newly transferred file
>  
>  
>  The problem with this approach is "*.deb" orders alphabetically
>  instead of by dependency.  I must iteratively run the above command
>  placing needed debs before the final "*.deb" argument.  That takes
>  time (and patience)!
>  
>  QUESTION: is there some option to 'dpkg' or another command/script
>  that
>will generate the file names in an order such that the
>dependencies are met?
>  
>  Thanks for any ideas!
>  

Apologies for the late post (I have been away for a while).

I use the approach described in section 2.2 of the APT Howto "How
to use APT Locally".
Simply copy all the files in /var/cache/apt/archives (office
machine) to, for example, /home/debs (home machine)
in /home -> touch override
in /home -> dpkg-scanpackages debs override | gzip > debs/Packages.gz
add to /etc/apt/sources.list 
  -> deb file:/home debs/
apt-get update
apt-get install foo

HTH

*

Lourens Steenkamp
Enjoying Debian GNU/Linux 3.0 r2

*

A monk was traveling and came to a fork in the road. 
He stopped, looked at it and decided to leave it there 
for someone else to ponder, someone who may need it, 
for his own spoon was quite sufficient.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Dependencies in Dir w/ Many .deb Files

2004-07-19 Thread Kenneth Jacker
  aj> You can:
  aj>
  aj> - Copy the files in /var/lib/apt/lists from the office machine as well
  aj> - Use apt-move on the office machine to move the downloaded files into a
  aj>   hierarchy that you can add to your sources.list on your home computer,
  aj>   e.g. using apt-cdrom
  aj> - Read the apt-offline howto

Wow, I didn't know there might be so many solutions!

While waiting for responses to my original post, I came up with yet
another approach:

   o Run Aptitude on my office machine

   o Copy/paste Aptitude's output into a file (say, "aptout")

   o Use that file as input to a simple Perl script (attached below)
 using:

 # ao2dep aptout >aptdeps

   o Transfer all files to home machine including "aptdeps"

   o At home install the new/upgraded files:

 # dpkg -i `cat aptdeps`


Now back to my 'ppp' problems!  When I solve them, I won't need any
of the above ...

Thanks for your comments,

  -Kenneth

#!/usr/bin/perl
#
#  ao2dep: transform Aptitude install/upgrade output
#   into list of files in correct dependency order
#
#$Id: ao2dep,v 1.1 2004/07/19 12:19:22 root Exp $
#

### Make sure there's a file name on command line ###
if ($#ARGV != 0) {
print "Usage: ao2dep \n";
exit (1);
}

### Generate the correctly ordered file list ###
while(<>) {

# Select correct lines from entire Aptitude output
if (/using|from/) {

# Delete prefix text
s/.*...\///;

# Delete suffix text
s/\).*//;

# Output the file name
print;
}

}


Re: Dependencies in Dir w/ Many .deb Files

2004-07-18 Thread Andreas Janssen
Hello

Kenneth Jacker (<[EMAIL PROTECTED]>) wrote:

> I have a slow Internet connection at home.  :-(
> 
> I can't yet use apt-zip since my home 'ppp' link still doesn't work
> (non-"8 bit clean" issues) thus prohibiting me from updating the apt
> database via the net.  :-(
> 
> 
> So, in order to temporarily keep my home system current, I am doing
> the following:
> 
>   o  Updating my office system (both are running pretty much
>  the same configuration of 'sarge')
> 
>   o Copying all the newly installed debs on the office machine from
> /var/cache/apt/archive to removable media
> 
>   o  Bringing that media home and copying the deb files to my home
>   hard drive
> 
>   o  Finally, I run "dpkg -i *.deb" on those newly transferred file
> 
> 
> The problem with this approach is "*.deb" orders alphabetically
> instead of by dependency.  I must iteratively run the above command
> placing needed debs before the final "*.deb" argument.  That takes
> time (and patience)!
> 
> QUESTION: is there some option to 'dpkg' or another command/script
> that
>   will generate the file names in an order such that the
>   dependencies are met?

You can:

- Copy the files in /var/lib/apt/lists from the office machine as well
- Use apt-move on the office machine to move the downloaded files into a
hierarchy that you can add to your sources.list on your home computer,
e.g. using apt-cdrom
- Read the apt-offline howto

best regards
Andreas Janssen

-- 
Andreas Janssen <[EMAIL PROTECTED]>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]