这是问题:
我有一个.deb文件的Google桌面Linux版本,我有一个没有su权限的服务器上的帐户。 我想在自己的服务器上安装Google桌面,在我的主目录中,但是.deb文件希望安装到/ opt,并且希望拥有su权限。 我不知道为什么要这样做 – 不能让我把它放在我自己的家目录吗?
如果其他用户也可以将他们自己的Google桌面实例安装在各自的主目录中,那也是很好的。
我不认为这是可能的,但如果任何人都可以帮助,这将是伟大的。
谢谢。
你用--inst选项的dpkg试过吗? 从man dpkg :
--instdir=dir Change default installation directory which refers to the directory where packages are to be installed. instdir is also the directory passed to chroot(2) before running package's installation scripts, which means that the scripts see instdir as a root directory. (Defaults to /)
尝试这个:
$ dpkg-deb -x google-desktop-linux.deb /home/john/google
从dpkg-deb页:
-x, --extract archive directory Extracts the filesystem tree from a package archive into the specified directory. Note that extracting a package to the root directory will not result in a correct installation! Use dpkg to install packages. directory (but not its parents) will be created if necessary, and its permissions modified to match the contents of the package.