Re: 一个关于dpkg的简单问题
On Sat, Jul 08, 2006 at 12:34:45AM +0800, Huisi Wang wrote:
> Hi,
>
> 想知道dpkg有没有像rpm -qf
> /path/to/file这样的选项?就是找出一个绝对路径下的文件是属于哪一个deb包的。看了man dpkg,没有找到。
Then read it carefully :-)
From the dpkg man page:
dpkg-query-actions
See dpkg-query(1) for more information about the following actions.
dpkg -l | --list package-name-pattern ...
List packages matching given pattern.
dpkg -s | --status package-name ...
Report status of specified package.
dpkg -L | --listfiles package ...
List files installed to your system from package.
dpkg -S | --search filename-search-pattern ...
Search for a filename from installed packages.
dpkg -p | --print-avail package
Display details about package, as found in /var/lib/dpkg/available.
I think 'dpkg -S' should satisfy you.
>
> 谢谢!
>
> --
> Best regards,
> Huisi
-------------------------
--
You are going to have a new love affair.
Reply to: