Discussion:
ping/nslookup - which rpm package?
Joffer
2002-08-28 08:37:31 UTC
Permalink
Sorry for having to ask this, but which rpm package(s) contains the ping and
nslookup command? I haven't installed it when I installed the server
apparantly.

An "easy" answer would probably which rpm command to use to check the Trustix
rpms for xxxx file? (I've got all TSL RPMs on the disk)

rpm -some_options the_file_I_seek *.rpm
or something like this. This way I won't have to ask again the next time. I
have tried a lot of different options but haven't managed to locate the right
one yet...

/Christopher Thorjussen
Rönnblom Janåke /Teknous
2002-08-28 08:30:47 UTC
Permalink
Post by Joffer
Sorry for having to ask this, but which rpm package(s) contains the ping and
nslookup command? I haven't installed it when I installed the server
apparantly.
An "easy" answer would probably which rpm command to use to check the Trustix
rpms for xxxx file? (I've got all TSL RPMs on the disk)
rpm -some_options the_file_I_seek *.rpm
or something like this. This way I won't have to ask again the next time. I
have tried a lot of different options but haven't managed to locate the right
one yet...
Another RPM command would be to check what package a specified file
is member of:

***@disco ~$ rpm -qf /usr/bin/nslookup
bind-utils-8.2.6-1tr
***@disco ~$ rpm -qf /bin/ping
iputils-0.0.20001011-1tr



=====================================================
Janåke Rönnblom
SKERIA Utveckling AB (Teknous)
Assistentgatan 23
931 77 Skelleftea (Sweden)
-----------------------------------------------------
Phone : +46-910-585424
Mobile : 070-3970743
Fax : +46-910-585499
URL : http://skeria.skelleftea.se
-----------------------------------------------------
perlpoet at work:die if !($ToBe);
Gerald Dachs
2002-08-28 08:01:49 UTC
Permalink
Another RPM command would be to check what package a specified file is
bind-utils-8.2.6-1tr
iputils-0.0.20001011-1tr
for this you have to have it already installed and he has not.

currently I can't check it, but I don't believe that
rpm -qf /usr/bin/nslookup -p /mnt/cdrom/*
works :(

Gerald
--
Gerald Dachs ***@trustix.org
http://www.trustix.org/~gda/ A Trustix Fan
Rönnblom Janåke /Teknous
2002-08-28 09:10:34 UTC
Permalink
Post by Gerald Dachs
for this you have to have it already installed and he has not.
Ofcourse he has :)

Who hasn't got multiple servers running trustix?

Anyway this should work then:

rpm -qp --queryformat [%{filenames} *** %{name}\n]
/home/ftp/pub/mirror/Trustix/trustix-1.5/i586/Trustix/RPMS/*rpm | grep
nslookup

should give you the packagename also

=====================================================
Janåke Rönnblom
SKERIA Utveckling AB (Teknous)
Assistentgatan 23
931 77 Skelleftea (Sweden)
-----------------------------------------------------
Phone : +46-910-585424
Mobile : 070-3970743
Fax : +46-910-585499
URL : http://skeria.skelleftea.se
-----------------------------------------------------
perlpoet at work:die if !($ToBe);
Joffer
2002-08-28 12:19:42 UTC
Permalink
Post by Rönnblom Janåke /Teknous
Who hasn't got multiple servers running trustix?
I do :)
Post by Rönnblom Janåke /Teknous
rpm -qp --queryformat [%{filenames} *** %{name}\n]
/home/ftp/pub/mirror/Trustix/trustix-1.5/i586/Trustix/RPMS/*rpm | grep
nslookup
should give you the packagename also
Just what I was looking for.

Thanks everyone, both for package and rpm command help.

/Christopher Thorjussen
Tor Hveem
2002-08-28 09:17:01 UTC
Permalink
Post by Joffer
Sorry for having to ask this, but which rpm package(s) contains the ping
and nslookup command? I haven't installed it when I installed the server
apparantly.
An "easy" answer would probably which rpm command to use to check the
Trustix rpms for xxxx file? (I've got all TSL RPMs on the disk)
rpm -some_options the_file_I_seek *.rpm
or something like this. This way I won't have to ask again the next time. I
have tried a lot of different options but haven't managed to locate the
right one yet...
you could maybe do a rpm -qpl /mnt/disk_with_rpms/*.rpm | grep ping
or even rpm -qpl `ls /mnt/disk_with_rpms/*` | grep ping

TH
Post by Joffer
/Christopher Thorjussen
_______________________________________________
tsl-discuss mailing list
http://www.trustix.org/mailman/listinfo.cgi/tsl-discuss
Gerald Dachs
2002-08-30 06:33:58 UTC
Permalink
Post by Joffer
Sorry for having to ask this, but which rpm package(s) contains the
ping and nslookup command? I haven't installed it when I installed the
server apparantly.
An "easy" answer would probably which rpm command to use to check the
Trustix rpms for xxxx file? (I've got all TSL RPMs on the disk)
rpm -some_options the_file_I_seek *.rpm
or something like this. This way I won't have to ask again the next
time. I have tried a lot of different options but haven't managed to
locate the right one yet...
you could maybe do a rpm -qpl /mnt/disk_with_rpms/*.rpm | grep ping or
even rpm -qpl `ls /mnt/disk_with_rpms/*` | grep ping
This will not help him, because he wouldn't see in which package it is,
I think there was already a working answer on his question.
Gerald
--
Gerald Dachs ***@trustix.org
http://www.trustix.org/~gda/ A Trustix Fan
Loading...