查看某文件属于的软件包

在做共享内存的东西,想找ipcs的源代码看看,结果直接ipcs.c出来的是FreeBSD下的,不知道和Linux下的有啥区别,所以只好去找命令,以前只知道apt可以用 -S 参数,手上的SuSE是RPM系的,去网上转了转,发现可以用rpm -qf 来作,不过后面跟的参数要是文件的绝对路径,嗯。over.

This entry was posted in 小企鹅Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>