LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to update my CentOS 8 OS ? (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-update-my-centos-8-os-4175708729/)

guruprasad07 02-28-2022 05:09 PM

Unable to update my CentOS 8 OS ?
 
Hello,
I working on CentOS-8.1.1911-x86_64 OS and when I am trying to update the OS, using "sudo dnf install update -y", the process exits with the RuntimeError "Failed to download metadata for repo 'AppStream' ".
I have attached the /var/log/dnf.log. From what I have understood is that the CentOS appstream link "http://mirrorlist.centos.org" is not working an has been moved to some other location.
Problem is I don't know how to configure or effect changes to make sure the repo AppStream points to the correct location.

Will be thankful, if anyone can show me how to get repo AppStream to start working.

Regards,
guruprasad07

michaelk 02-28-2022 05:34 PM

CentOS 8 went End Of Life 31 Dec 2021 which is why mirrorlist.centos.org is no longer working.

You can try changing to vault.centos.org

https://forums.centos.org/viewtopic.php?f=54&t=78708

Timothy Miller 02-28-2022 06:31 PM

Or migrate it to Rocky Linux, which is what I've done at work. Rocky is founded by the very same individual that originally founded CentOS.

computersavvy 02-28-2022 07:34 PM

This is not a valid dnf command
Code:

"sudo dnf install update -y"
To correct that you would used
Code:

"sudo dnf update -y"
to do the update or
Code:

"sudo dnf install <packagename> -y"
to install some package.

The posts above tell you the reason for your error, but if you are managing a CentOS server you should at least use the proper commands for updates and software installation.

guruprasad07 03-01-2022 06:54 AM

Hello,
I am going to try out the Rocky Linux and see how it goes from there.
Thank you for the support.

boughtonp 03-01-2022 10:49 AM


 
AlmaLinux is another CentOS alternative.

It is notable that AlmaLinux was significantly better organized than Rocky Linux - with a beta on 1 Feb 2021 and first stable release on 30 March 2021, whilst Rocky's first RC took until 30 April and their first stable release took until 21 June 2021.

(With v8.5 both AlmaLinux and Rocky Linux stable releases were within a week of RHEL, so it may have been just initial hiccups, but it may be a factor to consider.)


(p.s. Gregory Kurtzer was a co-founder of CentOS - along with Rocky McGaugh, Lance Davis, and others.)


computersavvy 03-01-2022 04:23 PM

Quote:

Originally Posted by boughtonp (Post 6334176)
AlmaLinux is another CentOS alternative.

It is notable that AlmaLinux was significantly better organized than Rocky Linux - with a beta on 1 Feb 2021 and first stable release on 30 March 2021, whilst Rocky's first RC took until 30 April and their first stable release took until 21 June 2021.

(With v8.5 both AlmaLinux and Rocky Linux stable releases were within a week of RHEL, so it may have been just initial hiccups, but it may be a factor to consider.)


(p.s. Gregory Kurtzer was a co-founder of CentOS - along with Rocky McGaugh, Lance Davis, and others.)


Strange that you think the dates mean anything about organization, or preparation, or anything else. Who decided and when to start each of those distros?. Was it at the same time?, was the later one started first?, was more thought put into one than the other?

Your generic implication that one is better than the other, both of which are only about a year past first appearing, seems a bit misguided since only time will tell which is actually better in the minds of the users.

Timothy Miller 03-01-2022 06:05 PM

IMO they're about equal, I've tested both. Migrating from CentOS 8 to either I choose Rocky every time because the migration script you can download to do it requires less prep.

boughtonp 03-01-2022 06:38 PM

Quote:

Originally Posted by computersavvy (Post 6334262)
Strange that you think the dates mean anything about organization, or preparation, or anything else. Who decided and when to start each of those distros?. Was it at the same time?, was the later one started first?, was more thought put into one than the other?

Huh? Why is that strange?

Both CentOS replacements were announced within 48 hours of the CentOS announcement.

Do you think not enough thought was put into AlmaLinux because the initial announcement said "Q1 2021", then they went and successfully released both release candidate and stable release before the end of Q1?


Quote:

Your generic implication that one is better than the other, both of which are only about a year past first appearing, seems a bit misguided since only time will tell which is actually better in the minds of the users.
I have no idea what you're referring to - there are no implications.

I explicitly stated that Rocky Linux was not as well organized at the start, and I also said it could have just been one-off starting hurdles since both projects reacted promptly to the RHEL v8.5 release.

I made no reference to betterness outside of that.

Perhaps had I said "... the AlmaLinux OS Foundation was significantly better organized than Rocky Enterprise Software Foundation ..." then I wouldn't have needed to waste time with this clarification.

*shrug*



All times are GMT -5. The time now is 02:44 AM.