I installed hpc_sdk from the link. The latest available version is 21.7. But I it was lack of libgomp library required for OpenAcc compilation. So, I wanted to re-install it. In order to uninstall I run the command:
sudo rm -rf /opt/nvidia/hpc_sdk/
Then removed the line with hpc_sdk in bashrc.
Then when I try to install again using the commands:
sudo apt-get install ./nvhpc-21-7_21.7_amd64.deb
sudo apt-get install ./nvhpc-2021_21.7_amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘nvhpc-21-7’ instead of ‘./nvhpc-21-7_21.7_amd64.deb’
nvhpc-21-7 is already the newest version (21.7).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
and does not proceed with the installation.
What else should I do in order to completely uninstall hpc_sdk?