Fedora Linux Support Community & Resources Center
  #1  
Old 24th August 2012, 07:56 PM
nowhereman's Avatar
nowhereman Offline
Registered User
 
Join Date: Apr 2005
Location: nowhere
Posts: 7
linuxfirefox
Question /etc/redhat-release

After an upgrade from F16 (via preupgrade-cli), mine says:

Code:
Generic release 17 (Generic)
I expected Fedora mentioned in there..?

What does yours say (fresh install/preupgrade/yum upgrade)?
Reply With Quote
  #2  
Old 24th August 2012, 08:22 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: /etc/redhat-release

I have a fresh install of Fedora 17 and mine says
Quote:
Fedora release 17 (Beefy Miracle)
Reply With Quote
  #3  
Old 24th August 2012, 11:02 PM
nowhereman's Avatar
nowhereman Offline
Registered User
 
Join Date: Apr 2005
Location: nowhere
Posts: 7
linuxfirefox
Re: /etc/redhat-release

Bizarre..:

Code:
$ rpm -qf /etc/redhat-release 
fedora-release-16-1.noarch
generic-release-17-1.noarch
They are both installed and provide lots of the same files..?!

Code:
$ rpm -ql fedora-release-16-1.noarch 
/etc/fedora-release
/etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-16-primary
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-16-secondary
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc64
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-s390
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-s390x
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc64
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64
/etc/redhat-release
/etc/rpm/macros.dist
/etc/system-release
/etc/system-release-cpe
/etc/yum.repos.d
/etc/yum.repos.d/fedora-updates-testing.repo
/etc/yum.repos.d/fedora-updates.repo
/etc/yum.repos.d/fedora.repo
/usr/share/doc/fedora-release-16
/usr/share/doc/fedora-release-16/GPL
Code:
$ rpm -ql  generic-release-17-1.noarch
/etc/fedora-release
/etc/issue
/etc/issue.net
/etc/os-release
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-17-primary
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-17-secondary
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm64
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-armhfp
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc64
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-s390
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-s390x
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc64
/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64
/etc/redhat-release
/etc/rpm/macros.dist
/etc/system-release
/etc/system-release-cpe
/etc/yum.repos.d
/etc/yum.repos.d/fedora-updates-testing.repo
/etc/yum.repos.d/fedora-updates.repo
/etc/yum.repos.d/fedora.repo
/usr/share/doc/generic-release-17
/usr/share/doc/generic-release-17/GPL
Reply With Quote
  #4  
Old 24th August 2012, 11:11 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: /etc/redhat-release

I wonder if "yum distro-sync" would help?
Reply With Quote
  #5  
Old 24th August 2012, 11:54 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfirefox
Re: /etc/redhat-release

But /etc/redhat-release is old-school and the new distro independent file is /etc/os-release.



Quote:
[stevea@crucibulum Desktop]$ cat /etc/os-release
NAME=Fedora
VERSION="17 (Beefy Miracle)"
ID=fedora
VERSION_ID=17
PRETTY_NAME="Fedora 17 (Beefy Miracle)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:17"
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #6  
Old 25th August 2012, 02:08 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: /etc/redhat-release

actually, generic-release is the package that you install if you don't want to use the Fedora logos, icons, etc..

That is probably what is putting the "Generic release 17 (Generic)" into your file instead of " Fedora release 17 (Beefy Miracle) "

I would uninstall generic release and reinstall fedora-release.

Code:
yum remove generic-release
yum reinstall fedora-release
Edit:

Thinking about this... You may not be able to just remove the generic-release package without it removing just about everything in your system as a dependency. But, reinstalling the fedora-release package should overwrite the generic-release stuff.

Last edited by DBelton; 25th August 2012 at 02:11 AM.
Reply With Quote
  #7  
Old 30th August 2012, 10:27 AM
nowhereman's Avatar
nowhereman Offline
Registered User
 
Join Date: Apr 2005
Location: nowhere
Posts: 7
linuxfirefox
Re: /etc/redhat-release

Well, I didn't intentionally install generic-release, preupgrade+yum must have done it. I'll try suggested distro-sync and installing fedora-release and report back.

To me this seems like a (minor) bug in the upgrade process from F16.
Reply With Quote
  #8  
Old 30th August 2012, 01:21 PM
Dutchy Offline
Registered User
 
Join Date: Aug 2011
Posts: 697
linuxfirefox
Re: /etc/redhat-release

Quote:
Originally Posted by DBelton View Post
Thinking about this... You may not be able to just remove the generic-release package without it removing just about everything in your system as a dependency.
One could do:
PHP Code:
rpm ---nodeps generic-release
yum reinstall fedora
-release 
Why is there actually an abundance of these release information files?
I can spot at least 5 of them on my installs (with some of them being symbolic links)
Reply With Quote
  #9  
Old 3rd September 2012, 06:04 AM
fpmurphy Offline
Registered User
 
Join Date: May 2009
Location: /dev/ph
Posts: 308
windows_7firefox
Re: /etc/redhat-release

Because it is Linux!
Reply With Quote
  #10  
Old 13th September 2012, 10:34 PM
bendib's Avatar
bendib Offline
Registered User
 
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 100
linuxfirefox
Re: /etc/redhat-release

Quote:
rpm -e --nodeps generic-release-17-1.noarch
yum update fedora-release --releasever=17 -y
yum distro-sync
Hope that fixes it.
__________________
Often the only way to do a job right is to do a laughable job at it.

My advice is generally cheap and saturated with laziness, but it might work, or I wouldn't have posted it.
Reply With Quote
Reply

Tags
or etc or redhatrelease

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
system-release >= 11.90 is needed by rpmfusion-free-release-11.90-1.noarch lancedance Using Fedora 7 21st July 2009 03:59 AM
Upgrading from pre-release (alpha, beta, snapshot, preview etc) to the final release RahulSundaram Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 4 23rd April 2009 01:33 PM


Current GMT-time: 14:11 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat