Figure out what rpm package a program is a part of


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Figure out what rpm package a program is a part of
# 1  
Old 02-13-2014
Figure out what rpm package a program is a part of

I am trying to figure out what rpm package a program is a part of. I have tried the normal way.

Code:
rpm -qa | grep -i programname

What other ways can you try?
# 2  
Old 02-13-2014
You can use the -qf switch on the program filename:

Code:
rpm -qf /bin/ls
coreutils-8.4-19.el6.x86_64

These 2 Users Gave Thanks to in2nix4life For This Post:
# 3  
Old 02-15-2014
Quote:
Originally Posted by in2nix4life
You can use the -qf switch on the program filename:

Code:
rpm -qf /bin/ls
coreutils-8.4-19.el6.x86_64

Does this mean it was built from source on the server?

Code:
$ which sicsim
/usr/local/bin/sicsim
$ which sicasm
/usr/local/bin/sicasm
rpm -qf /usr/local/bin/sicsim
file /usr/local/bin/sicsim is not owned by any package
$ rpm -qf /usr/local/bin/sicasm
file /usr/local/bin/sicasm is not owned by any package

# 4  
Old 02-15-2014
Yes that should mean it was not installed via package management. It could be precompiled binaries or built from source on the server. Also the path /usr/local is normally not used by packages, at least not on RedHat. I don't know what your distribution is?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Does not appear to be a RPM package

Hi Guys I got this error when I try to install perl-5.24.0-1.aix6.1.ppc.rpm package rpm -ivh perl-5.24.0-1.aix6.1.ppc.rpm error: perl-5.24.0-1.aix6.1.ppc.rpm does not appear to be a RPM package (4 Replies)
Discussion started by: khaled_ly84
4 Replies

2. UNIX for Advanced & Expert Users

Protected RPM package

Is there a way to create a protected RPM package without giving up your source code? (2 Replies)
Discussion started by: cokedude
2 Replies

3. Red Hat

Build Rpm package

Hi Everybody, I would like to know how to build an RPM package. Could you please let me know how to do it with the procedure. Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

6. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

7. UNIX for Advanced & Expert Users

figure out how part of a logfile got deleted

I there a way to figure out how part of a logfile got deleted? I know unix does not have a date created date so that makes things very difficult to tell if the file got deleted or not. Several thousand lines of my .bash_history somehow got deleted. I still have this in my .bashrc so I don't... (0 Replies)
Discussion started by: cokedude
0 Replies

8. UNIX for Dummies Questions & Answers

RPM Package - Rollback

Is it possible to rollback a package in Redhat ?I don't want to delete any packages. I have upgraded a package using rpm -Uvh & now i decided to use the old package, is it possible to revert it back to the original package ? (3 Replies)
Discussion started by: sydney2008
3 Replies

9. Ubuntu

Rpm package

Hi All, I just recently installed UBUNTU 2.6.24-16 and i installed my phone software which is a RPM package (it's a similiar package with MSN). The software called MXIE. I managed to install it successfully but i can't run the software. When i try to run it, i received... (8 Replies)
Discussion started by: c00kie88
8 Replies

10. Linux

how to restore original package after uninstalling the upgraded package using rpm

have following package installed rpm -qa |grep ADMIN It will give the following package installed: ADMIN-4.0.0.1 Now I will upgrade the ADMIN package using the following command. rpm --upgrade ADMIN-4.1.0.1 It will upgrade the ADMIN packagge to ADMIN-4.1.0.1 Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies
Login or Register to Ask a Question