[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stupid package installer wanted: uppity robots need not apply



> On Thu, Mar 13, 2003 at 12:09:17PM -0500, Burton Windle wrote:
> > dpkg?
> > 
> > dpkg -i filename.deb
> 
> Not even close. For instance:
> 
> 	PKGLIST="modutils- another+ another2+"
> 	apt-get -y install $PKGLIST
> 
> will fail. If you you do it at the lower level:
> 
> 	PKGLIST1="modutils"
> 	for $pkg in $PKGLIST1; do
> 	  dpkg --purge $pkg < yes
> 	done
> 	PKGLIST2="another.deb another2.deb"
> 	for $pkg in $PKGLIST1; do

You probably mean   $PKGLIST2 here, as written it reinstalls modutils.

> 	  dpkg --install $pkg < yes
> 	done
> 
> will also fail to remove modutils.
> 
> I've just been chatting with BDale and he suggested
> I talk to people on debian-boot as there actually
> is no current good hands-off option.
> 
> -- 
> ------------------------------------------------------
>        IN MY NAME:            Dale Amon, CEO/MD
>   No Mushroom clouds over     Islandone Society
>     London and New York.      www.islandone.org
> ------------------------------------------------------

If you are desperate you could always extract the package yourself and
install it "by hand", but that is probably not what you wanted:

 $ ar -t mpage_2.5.3-1_i386.deb 
 debian-binary
 control.tar.gz
 data.tar.gz
 $ ar -x mpage_2.5.3-1_i386.deb
 $ cat debian-binary 
 2.0
 $ tar ztf control.tar.gz 
 ./
 ./md5sums
 ./control
 $ tar zxf control.tar.gz 
 $ cat control
 Package: mpage
 Version: 2.5.3-1
 Section: text
 Priority: optional
 Architecture: i386
...
 $ cat md5sums 
 7892f5b1dd260b1ac7b55ec327ffb6dd  usr/lib/mpage/CP850.PC
...
 f6f1f0f1975ee35e54b4ce0438a8053b  usr/share/doc/mpage/changelog.Debian.gz
 $ tar ztf data.tar.gz 
 ./
 ./usr/
 ./usr/lib/
 ./usr/lib/mpage/
 ./usr/lib/mpage/CP850.PC

...

 ./usr/share/doc/mpage/TODO.gz
 ./usr/share/doc/mpage/changelog.Debian.gz

Dale Amon <amon@vnl.com>, Thu, 13 Mar 2003 16:37:08 +0000:
...
> No "add the following 10 switches to force that action".
...

 dpkg -i --force-all "$@"

One switch to force that action.


Regards,
/Karl

-----------------------------------------------------------------------
Karl Hammar                    Aspö Data           karl@kalle.csb.ki.se
Lilla Aspö 2340                                                Networks
S-742 94 Östhammar          +46  173 140 57                   Computers
Sweden                     +46  70 511 97 84                 Consulting
-----------------------------------------------------------------------




Reply to: