Make clicking on an RPM or Deb install it as root

Can I set it up so that clicking on an RPM or Debian package will install it as root (after entering the password)?

Yes. Open the menu over an RPM and choose 'Set Run Action...'. Set the command to:

gnomesu -u root -e -c "rpm -i \"$1\""

You'll need the latest version of httpgnomesu installed.