fedora-release-$PRODUCT, /etc/issue, /etc/os-release, Per-Product Configs and more!

Stephen Gallagher sgallagh at redhat.com
Thu Jul 10 16:52:14 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/10/2014 12:45 PM, Michal Schmidt wrote:
> On 07/10/2014 04:34 PM, Stephen Gallagher wrote:
>> Basically, in order to swap out the productized and
>> non-productized release packages, it's not actually as simple as
>> 'yum swap fedora-release-standard fedora-release-server'. The way
>> the dependency processing works in yum and dnf will generally
>> fall over and fail to properly detect the other packages that
>> would need to be swapped (such as firewalld-config-standard ->
>> firewalld-config-server).
> 
> dnf seems able to figure out even the firewalld-config-* swap
> fine:
> 
> $ sudo dnf install fedora-release-workstation --allowerasing 
> Dependencies resolved.
> 
> ================================================================================
>
> 
Package                         Arch      Version             Repository
 Size
> ================================================================================
>
> 
Installing:
> fedora-release-workstation      noarch    21-0.9
> rawhide     17 k firewalld-config-workstation    noarch
> 0.3.10-4.fc21       rawhide     40 k Removing: 
> fedora-release-server           noarch    21-0.9
> @System    1.0 k firewalld-config-server         noarch
> 0.3.10-4.fc21       @System    1.0 k
> 
> Transaction Summary 
> ================================================================================
>
> 
Install  2 Packages
> Remove   2 Packages
> 
> Total download size: 57 k Is this ok [y/N]: ...
> 
> Michal
> 


Ok, that's really good to know. Yum however does not resolve this
correctly, and yum is our default package manager.

I just tried:

[sgallagh at sgallagh540:~]$ sudo yum install fedora-release-server
- --disablerepo=fedora --disablerepo=updates  --enablerepo=rawhide
- --disablerepo=updates-testingLoaded plugins: auto-update-debuginfo,
langpacks
bluejeans                                                   | 2.9 kB
00:00
google-chrome                                               |  951 B
00:00
sgallagh-chrome-compat-libgcrypt                            | 3.0 kB
00:00
Resolving Dependencies
- --> Running transaction check
- ---> Package fedora-release-server.noarch 0:21-0.9 will be installed
- --> Processing Conflict: fedora-release-workstation-21-0.9.noarch
conflicts fedora-release-server
- --> Processing Conflict: fedora-release-server-21-0.9.noarch conflicts
fedora-release-workstation
- --> Finished Dependency Resolution
Error: fedora-release-workstation conflicts with
fedora-release-server-21-0.9.noarch
Error: fedora-release-server conflicts with
fedora-release-workstation-21-0.9.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


And also:

[sgallagh at sgallagh540:~]$ sudo yum swap fedora-release-workstation
fedora-release-server --disablerepo=fedora --disablerepo=updates
- --enablerepo=rawhide --disablerepo=updates-testing
Loaded plugins: auto-update-debuginfo, langpacks
(1/2): rawhide/x86_64/primary_db                            |  17 MB
00:02
(2/2): rawhide-debuginfo/x86_64/primary_db                  | 1.7 MB
00:06
Resolving Dependencies
- --> Running transaction check
- ---> Package fedora-release-server.noarch 0:21-0.9 will be installed
- ---> Package fedora-release-workstation.noarch 0:21-0.9 will be erased
- --> Processing Dependency: system-release-workstation for package:
firewalld-config-workstation-0.3.10-4.fc21.noarch
- --> Running transaction check
- ---> Package firewalld-config-workstation.noarch 0:0.3.10-4.fc21 will
be erased
- --> Processing Dependency: firewalld-config for package:
firewalld-0.3.10-4.fc21.noarch
- --> Running transaction check
- ---> Package firewalld.noarch 0:0.3.10-4.fc21 will be erased
- --> Processing Dependency: firewalld = 0.3.10-4.fc21 for package:
firewall-config-0.3.10-4.fc21.noarch
- --> Running transaction check
- ---> Package firewall-config.noarch 0:0.3.10-4.fc21 will be erased
- --> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                         Arch      Version
Repository    Size
================================================================================
Installing:
 fedora-release-server           noarch    21-0.9            rawhide
     17 k
Removing:
 fedora-release-workstation      noarch    21-0.9            installed
   1.0 k
Removing for dependencies:
 firewall-config                 noarch    0.3.10-4.fc21     installed
   778 k
 firewalld                       noarch    0.3.10-4.fc21     installed
   2.1 M
 firewalld-config-workstation    noarch    0.3.10-4.fc21     installed
   1.0 k

Transaction Summary
================================================================================
Install  1 Package
Remove   1 Package (+3 Dependent packages)

Total download size: 17 k
Is this ok [y/d/N]: n
Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2014-07-10.12-49.uQjUpN.yumtx




Neither of these approaches with yum worked correctly. It's good to
know that about dnf though..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlO+xL4ACgkQeiVVYja6o6PLdACaAyB7p8UQr3b0khY8mLhJTeIy
jU8An3U3pViGDwCwiEASUfUjG+WbpmRz
=4gTK
-----END PGP SIGNATURE-----


More information about the devel mailing list