RPM used to installed to get a partcular command


 
Thread Tools Search this Thread
Operating Systems Linux RPM used to installed to get a partcular command
# 1  
Old 07-05-2008
Java RPM used to installed to get a partcular command

Hi,


I have a query in linux and please find the details of it

I have a command in linux and i want to know which rpm has provided that command.

ie: if we take ifconfig command ,i want to know what is the rpm package used to get that command.

Regards
Arun.Kakarla
# 2  
Old 07-05-2008
rpm itself does not provide such a mechanism, its a quite basic package format. But e.g. Suse's YaST is able to search through all available (installed and not installed) packages. Many distro's have similiar tools or at least online databases.
# 3  
Old 07-05-2008
Code:
rpm -qf <filename>

Code:
> rpm -qf /sbin/ifconfig
net-tools-1.60-76.fc6

# 4  
Old 07-05-2008
Thank you

Regards
Arun.Kakarla
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies

2. AIX

Problems with the rpm command

Hi folks, I have a problem with command rpm, I'm running the command and appears this error: server:/tmp/python# uname -rv 2 5 server:/tmp/python# rpm -i python-2.3.4-2.aix5.1.ppc.rpm exec(): 0509-036 Cannot load program /opt/freeware/bin/rpm because of the following errors: ... (6 Replies)
Discussion started by: stenioc1
6 Replies

3. Red Hat

How to create an rpm from installed files?

i would like to package up an rpm from pre-installed files, say i have a program called "widget" installed under "/opt/widget" /opt/widget/bin/* /opt/widget/lib/* /opt/widget/etc/* /opt/widget/log/* and i want to create an rpm from those already installed files, what would the spec file... (2 Replies)
Discussion started by: melixir
2 Replies

4. AIX

Rpm issue with autoconf-2.63-1.AIX6.1.noarch.rpm

dears i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message . P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm error: failed dependencies: m4 is needed by autoconf-2.63-1 P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies

5. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

6. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies

7. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

8. Shell Programming and Scripting

remove new line characters from a partcular column data

Dear friends, I have a pipe delimited file having 5 columns. However the column no-3 is having extra new line characters as the data owing to owing , I am having issues. Ideally my file should have only newline termination at the end of each record and not within column data of any of... (1 Reply)
Discussion started by: sureshg_sampat
1 Replies

9. Shell Programming and Scripting

Check if rpm is installed

Hi all im hoping someone can help, i want to check if a rpm package is installed, if it is then display one text if not then another text, below is what i have got so far, im am very much a noob at this, as you can probably can see so if possible make it simple, and a big thankyou if you can help... (3 Replies)
Discussion started by: dave123
3 Replies

10. UNIX for Dummies Questions & Answers

bash command to get the name of OS installed

hi I want a bash command that can give me the name of the operating system installed on the local machine. Basically I will be using that for getting the name of the operating system installed on the target machine. Please reply me soon as possible Thanks Satish (3 Replies)
Discussion started by: sateeshgauns
3 Replies
Login or Register to Ask a Question