tdnf check-update does not appear to behave like yum check-update in how it refreshes the repo cache to determine if new packages are available. Cleaning the meta data is required every time in my experience with tdnf.
Example run:
dlinsley@photon-YRjrxkFmh [ ~ ]$ sudo tdnf check-update
...Expecting a list available package updates here but have nothing...
dlinsley@photon-YRjrxkFmh [ ~ ]$ sudo tdnf update
Nothing to do.
dlinsley@photon-YRjrxkFmh [ ~ ]$ sudo tdnf clean all
Cleaning repos: photon-extras photon lightwave photon-updates
Cleaning up everything
dlinsley@photon-YRjrxkFmh [ ~ ]$ sudo tdnf check-update
initramfs.x86_64 1.0-7.11445761.ph1 photon-updates
bash.x86_64 4.3.30-10.ph1 photon-updates
linux-esx.x86_64 4.4.71-1.ph1 photon-updates
linux.x86_64 4.4.71-1.ph1 photon-updates
cloud-init.noarch 0.7.9-1.ph1 photon-updates
python-jinja2.noarch 2.9.5-2.ph1 photon-updates
Updates detected after tdnf clean all
Package Version: tdnf-1.1.0-1.ph1.x86_64
tdnf check-updatedoes not appear to behave likeyum check-updatein how it refreshes the repo cache to determine if new packages are available. Cleaning the meta data is required every time in my experience with tdnf.Example run:
dlinsley@photon-YRjrxkFmh [ ~ ]$ sudo tdnf check-update...Expecting a list available package updates here but have nothing...
Updates detected after
tdnf clean allPackage Version:
tdnf-1.1.0-1.ph1.x86_64