Hi,
it worked so far that the download went through and I can install other packages. But I would still gen the full functionality. And also to remove Virtualbox.
Under /etc/yum.repos.d there will be files for the repositories installed on your system. One here possibly will be called virtualbox.repo ir similar. Just delete this file.
For removing virtualbox so that it’s no longer installed, assuming the package name is virtualbox, you would then do:
dnf remove virtualbox
If you are still having problems after this, please post your results so that we can see what is happening to be able to help further.
For what it’s worth, on my Rocky 8 system, VB is from the Oracle website, and and dnf list installed doesn’t work. rpm -qi VirtualBox-7.0 works.
As I think the OP got it from a rocky repo, that should affect them, putting that info here though, in case someone’s web search brings them to this thread.
The two errors
----> Warning:failed loading ‘/etc/yum.repos.d/remi.repo’, skipping
and
—> Error: Failed to download metadata for repo ‘virtualbox’: repomd.xml GPG signature verification error: Bad GPG signature
are not-at least not direct-related to each other?
Anyway, the Warning (as the title of the article) still exists.
The remi.repo is not loading, maybe due to bad formatting or invalid characters. If you are not using packages from this, move the file to a different directory so that dnf/yum doesn’t load it. Do the same for the virtualbox repo file, since if you uninstalled, you no longer want to use it. That will also solve the bad gpg error, since dnf/yum will no longer use it.
You can also edit the repo files, and just change enabled=1 to enabled=0. Although that will unlikely work if the file is incorrectly formatted. We would need to see the content of the file to be able to say for sure.
Before I try to do as you recommend I just want to ask, how I can know what kind of packages are “packed” by that specific repo, so to know if I need them in future or not?
Neither “virtualbox” nor “remi” repo definitions are provided by Rocky. You got those definitions from somewhere, so you can get them again, if needed.
it will show against each package installed from which repository it came from. Obviously it lists all packages installed, but you can use that to grep for remi or virtualbox - the names of the two you wanted to disable to see if anything got left behind and not removed.
There will be exceptions to that rule if an rpm was installed outside of dnf/yum repositories for example. For example I make my own rpm for installing pycharm community on my system, and it shows @System instead of a named repository.