Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to install a Debian pkg in $HOME?

254 views
Skip to first unread message

bill

unread,
Jun 10, 2002, 1:42:36 PM6/10/02
to


I want to install a Debian package (openssl_0.9.4-5.deb) in my own
home directory. I tried

% dpkg --force-not-root -i openssl_0.9.4-5.deb

but I got the error message:

dpkg: operation requires read/write access to dpkg status area

Is there a way to get around this problem?

Thanks!

bill

Ali Bahar

unread,
Jun 10, 2002, 2:50:57 PM6/10/02
to
bill <bill...@hotmail.com> writes:


Hmmm. I usually just download the src, and use
./configure --prefix=/home/alih
to prepare the build.

I'm really not sure if this is fully feasable by dpkg. You can try
dpkg --root=/home/alih -i openssl_0.9.4-5.deb

but I doubt it'll work. You're supposed to have a full directory
structure, and proper dpkg status files eg
~/bin/
~/lib/
~/var/lib/dpkg/*

Makefiles typically create these dirs for you if they don't already
exist; I doubt dpkg would!
I doubt there'd be any harm in trying it, though. ;-)

It might not be that hard to build the src.


> I want to install a Debian package (openssl_0.9.4-5.deb) in my own
> home directory. I tried
>
> % dpkg --force-not-root -i openssl_0.9.4-5.deb
>
> but I got the error message:
>
> dpkg: operation requires read/write access to dpkg status area

--

UNIX: designed by programmers, for programmers.

Simon Walter

unread,
Jun 11, 2002, 3:21:36 AM6/11/02
to
You can extract the tarball from the deb package using ar :
$> ar -t my_deb.deb
debian-binary
control.tar.gz
data.tar.gz
$> ar -x data.tar.gz
$> tar -tzf data.tar.gz
./
./lib/
./lib/security/
./lib/security/pam_pgsql.so
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/libpam-pgsql/
./usr/share/doc/libpam-pgsql/examples/
./usr/share/doc/libpam-pgsql/examples/test.c
./usr/share/doc/libpam-pgsql/README
./usr/share/doc/libpam-pgsql/CREDITS
./usr/share/doc/libpam-pgsql/README.Debian
./usr/share/doc/libpam-pgsql/copyright
./usr/share/doc/libpam-pgsql/changelog.Debian.gz
(here the package libpam-pgsql_0.5.2-5_i386.deb as example)
You can thus untar the tarball wherever you want.
ar is the tool used to make static libraries, it is part of the binutils
package.

Simon

bill <bill...@hotmail.com> a écrit dans le message :
ae2oec$9o$1...@reader1.panix.com...

Ali Bahar

unread,
Jun 11, 2002, 1:46:34 PM6/11/02
to
"Simon Walter" <simon.walter@NO_SPAM.free.fr> writes:

> $> ar -t my_deb.deb

> $> ar -x data.tar.gz
> $> tar -tzf data.tar.gz

Great info.
Thanks,
ali

Hendrik Sattler

unread,
Jun 11, 2002, 3:53:36 PM6/11/02
to
bill wrote:

You can use alien to make a tar file from the debian package.

HS

Pietro

unread,
Jun 12, 2002, 8:41:38 PM6/12/02
to
Hi,

In article <ae5kg0$u55$03$1...@news.t-online.com>, Hendrik Sattler wrote:
>> I want to install a Debian package (openssl_0.9.4-5.deb) in my own
>> home directory. I tried

>> but I got the error message:
>> dpkg: operation requires read/write access to dpkg status area
>> Is there a way to get around this problem?

you can ask dpkg to write packages information in a different
location. have a look at the dpkg man page and in particular where it
says about --root=dir | --admindir=dir | --instdir=dir.

This should solve your problem... and as it has been said, you should
have a complete structure in your home directory. I'm used to have a dir
'software' in my home with a complete hierarchy.

cheers,
p

--
pgp key: 1024D/8A091922 2000-10-18
Pietro Abate <abateNo...@students.cs.unibo.it>
Key fingerprint = 5111 D91B 5E0C 5CE6 FDA3 5EF4 6120 E18E 8A09 1922
public key avalaible via public key server at wwwkeys.eu.pgp.net

Hendrik Sattler

unread,
Jun 13, 2002, 4:40:22 AM6/13/02
to
Pietro wrote:

> Hi,
>
> In article <ae5kg0$u55$03$1...@news.t-online.com>, Hendrik Sattler wrote:
>>> I want to install a Debian package (openssl_0.9.4-5.deb) in my own
>>> home directory. I tried
>>> but I got the error message:
>>> dpkg: operation requires read/write access to dpkg status area
>>> Is there a way to get around this problem?
>
> you can ask dpkg to write packages information in a different
> location. have a look at the dpkg man page and in particular where it
> says about --root=dir | --admindir=dir | --instdir=dir.
>
> This should solve your problem... and as it has been said, you should
> have a complete structure in your home directory. I'm used to have a dir
> 'software' in my home with a complete hierarchy.

[ ] you know how to post :((

I did not write that.

HS

0 new messages