use dpkg in ubuntu code example
Example: how to install dpkg in ubuntu
# download dpkg package
#open terminal into same directory and now type command with <packagename>.deb
sudo dpkg -i <package-name>.deb
#Ex: sudo dpkg -i mongodb-compass_1.23.0_amd64.deb