Shao Ying Zhang wrote: > > Hi all, > Could anyone teach me how to use dpkg to install in a specific > directory, such as /usr/local/. > > Thanks! >
That would defeat the purpose of dpkg. The maintainers of the deb packages decide (based on File System Standard and Debian policy) where the files should go so you don't have worry about manually installing software. Additionally, /usr/local/ is offlimits to dpkg/Debian, because policy says this is reserved for local users (you) to install software not available as a deb package. The bottom line is that deb packages can only be installed in the locations specified in the deb package. -- Ed C.