I run a VPS server. CentOs 9 stream.
When I try to do anything with DNF or YUM commands, it always returns, ‘Killed’.
For example, When I try run, ‘dnf update’
it returns,
[root@centos-s-1vcpu-512mb-10gb-sfo3-01]# dnf update
Killed
[root@centos-s-1vcpu-512mb-10gb-sfo3-01]#
When I try to run, ‘dnf install unzip’
it returns,
[root@centos-s-1vcpu-512mb-10gb-sfo3-01]# dnf install unzip
Killed
[root@centos-s-1vcpu-512mb-10gb-sfo3-01]#
I tried running, ‘dnf clean all’ command. But it did not fix the error.
2
Answers
I have fixed it by increasing the swap memory to 2gb from 512mb.
I got the same problem and I already have 2GB RAM.
I solved the problem by stopping the biggest program in the RAM.
In my case