Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is there a way by which we can find the dependent packages of hadoop and OS/Environments?

avatar
Expert Contributor

Is there a command or tool by which we can check the list of dependent libraries or files between hadoop and OS(environment)?

For eg: When we install ambari on RHEL, we have to manually install "libtirpc-devel". Thusa, is there a way by which we can check the hadoop packages that are dependent on "libtirpc-devel".

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Tamil Selvan K

We can query the depepdencies using "repoquery" which is available as part of package "yum-utils" Example:

# yum install yum-utils -y
          And then you can try something like this. 
# for i in `rpm -qa | grep hadoop` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done

Example: For ambari dependencies on CentOS6

for i in `rpm -qa | grep ambari-server` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done
Package [ambari-server-2.5.0.3-7.x86_64]:
postgresql-server >= 8.1
openssl  
python >= 2.6
/bin/sh  
/bin/sh  
/bin/sh  
/bin/sh  
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1

.

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Tamil Selvan K

We can query the depepdencies using "repoquery" which is available as part of package "yum-utils" Example:

# yum install yum-utils -y
          And then you can try something like this. 
# for i in `rpm -qa | grep hadoop` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done

Example: For ambari dependencies on CentOS6

for i in `rpm -qa | grep ambari-server` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done
Package [ambari-server-2.5.0.3-7.x86_64]:
postgresql-server >= 8.1
openssl  
python >= 2.6
/bin/sh  
/bin/sh  
/bin/sh  
/bin/sh  
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1

.

avatar
Expert Contributor

@Jay SenSharma

Thanks for it. And is there any other way round as well? Like for an particular rpmlib, can we find the list of HDP packages as well?

avatar
Master Mentor

@Tamil Selvan K

You might also want to try the following using "--tree-requiers" to see dependency tree.

# repoquery --tree-requires --recursive --resolve ambari-server

.