Apparently "Meiji Chang" <[EMAIL PROTECTED]> wrote:
Answer by: Jim Dennis
> Hi,
> Is there any way to find out what package that s specific program
> belongs to? And where to download the source to build it? For
> example, I am trying to figure out how and where to find the
> source or package for mount program. I check the fileutils &
> sh-utils and can't find it within them.
> Any help will be highly appreciated.
> Meiji
> [EMAIL PROTECTED]
That would be a "whence" command (which used to exist in
some forms of UNIX and even in the old Yggdrasil distributions).
If you're using an RPM based system such as Red Hat, S.u.S.E.
Turbolinux, etc, then you can use the following command to find
the "owner" or "provider" of a given file:
rpm -qf $FILEPATH
Note that this should use the full name of the file. So
in your case try:
rpm -qf $( which mount )
... (you can use backticks for the $(...) expression, this is
just a less ambiguous syntax under most fonts).
On a dpkg (Debian-based) system such as Debian, Corel, Stormix,
Libranet etc, then you can use the following command:
dpkg -S $FILEPATH
... or you can simply do a grep -l /var/lib/dpkg/info/*.list
--
Jim Dennis, The Linux Gazette "Answer Guy"
Linux Gazette is Published under the GPL http://www.linuxgazette.com
[EMAIL PROTECTED]
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.