To download all source packages (SRPMs) from the Red Hat or CentOS website using the "yum" package manager, you can use the following command:
yumdownloader --source package-name
Replace "package-name" with the name of the package you want to download the SRPM for.
To download the SRPM for multiple packages, you can specify multiple package names separated by a space.
For example, to download the SRPMs for the "openssh-server" and "openssh-clients" packages, you can use the following command:
yumdownloader --source openssh-server openssh-clients
This will download the SRPMs for the specified packages to the current working directory.
Alternatively, you can use the "yumdownloader" command with the "--resolve" option to download the SRPMs for all of the dependencies of a package. For example, to download the SRPMs for all of the dependencies of the "openssh-server" package, you can use the following command:
yumdownloader --resolve --source openssh-server
This will download the SRPMs for all of the dependencies of the "openssh-server" package, in addition to the SRPM for the "openssh-server" package itself.
Keep in mind that these commands will only work if the SRPMs are available in the configured repositories. If the SRPMs are not available, you may need to manually download them from the Red Hat or CentOS website or use a different method to obtain them.