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

fakeroot with chroot.


This is very dirty hack, but it works. I mean you can use debootstrap on
your user account without root privileges.

An example session from my system:

dexter@pepper!sid:~$ fakeroot
root@pepper!sid:~# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin
root@pepper!sid:~# /usr/sbin/chroot /tmp/fakeroot /bin/bash
root@pepper:/tmp/fakeroot# cd /
root@pepper:/# id
uid=0(root) gid=0(root) groups=1001(dexter)
root@pepper:/# apt-get install libfreetype6-dev
Reading Package Lists...
Building Dependency Tree...
The following extra packages will be installed:
2 packages upgraded, 0 newly installed, 0 to remove and 3  not upgraded.
Need to get 943kB of archives. After unpacking 28.7kB will be used.
Do you want to continue? [Y/n]
(Reading database ... 20462 files and directories currently installed.)
Preparing to replace libfreetype6-dev 2.1.3+2.1.4rc2-5 (using .../libfreetype6-dev_2.1.4-1_i386.deb) ...
Unpacking replacement libfreetype6-dev ...
Preparing to replace libfreetype6 2.1.3+2.1.4rc2-5 (using .../libfreetype6_2.1.4-1_i386.deb) ...
Unpacking replacement libfreetype6 ...
Setting up libfreetype6 (2.1.4-1) ...

Warning: Fake ldconfig called, doing nothing

Setting up libfreetype6-dev (2.1.4-1) ...
root@pepper:/# exit
root@pepper!sid:~# exit

Have a good fun!

Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'

Reply to: