It's not good practice to offer directly rpm and deb packages from web page an it's difficult to install said software programmatically that way.
It would be better to provide repository installation instructions for both apt and yum repositories and then provide the package name.
This can be offered as an alternative installation alongside the actual software installation packages is you feel that users may want to download unnecessary packages instead of using their underlying OS's package management from repositories.