0

I know that I can retrieve all dependencies recursively using yumdownloader --downloadonly. But is there a way that I can do it by passing the an rpm file instead of the package name? like yum install ./google-chrome-stable_current_x86_64.rpm --downloadonly --downloaddir=xx with some option to download dependencies of chrome's dependencies.

Pittie
  • 191
  • 1
  • 13

1 Answers1

0

Why dont you pull the NEVRA from the RPM file and pass it to yumdownloader

yumdownloader --resolve $(rpm -qp ./<RPMPACKAGE>.rpm --queryformat="%{nevra}")

tomgalpin
  • 1,943
  • 1
  • 4
  • 12
  • when I tried this command `yumdownloader --resolve $(rpm -qp google-chrome-stable_current_x86_64.rpm --queryformat="%{nevra}") --downloadonly --downloaddir=myDir` I got this message `No Match for argument google-chrome-stable-78.0.3904.70-1.x86_64 Nothing to download` – Pittie Feb 19 '20 at 08:25
  • Do you havew a repo set up in which it can resolve this package ? – tomgalpin Feb 19 '20 at 09:19
  • I dont have the root privileges to do so. – Pittie Feb 24 '20 at 03:19