This question already has an answer here:

I need to install a CentOS package and its dependencies totally offline in my lab.

this post is about Ubuntu instead of CentOS.

the only way I can imagine is to setup a mirror somewhere else, and move it physically to my lab.

the question is how to get all the dependencies of a specific CentOS package.

is there a simpler way to do this?

marked as duplicate by Thomas, Fabby, Prvt_Yadav, Mr Shunz, Christopher May 6 at 13:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.