26

How can one install a single Rawhide package, without upgrading the entire operating system?

shs
  • 3,683
  • 1
  • 6
  • 34
Zombo
  • 1
  • 62
  • 391
  • 407

2 Answers2

28
yum install fedora-repos-rawhide
yum install --enablerepo rawhide bash
Zoe
  • 27,060
  • 21
  • 118
  • 148
Zombo
  • 1
  • 62
  • 391
  • 407
24

This is the top search result for this inquiry. Key signing has changed for F27 on, so to pull a package from rawhide use the following:

sudo dnf install fedora-repos-rawhide -y
sudo dnf --disablerepo=* --enablerepo=rawhide --releasever=[next release #, e.g. if you're on 27 use 28] install [package name]

You can also import the key manually from the Fedora website or force an unauthenticated upgrade to the newest fedora-repos.

James E Olmos
  • 241
  • 2
  • 2
  • 3
    If you already have the package installed and you want to pull in a _newer_ version from Rawhide, you need `upgrade`, not `install`, but this is otherwise correct. – ptomato Feb 19 '18 at 04:39
  • 1
    It seems `--releasever=[n+1]` is presently critical to avoid "Import of key(s) didn't help, wrong key(s)?" error (https://bugzilla.redhat.com/show_bug.cgi?id=1473241, https://bugzilla.redhat.com/show_bug.cgi?id=1456079). Except that didn't work for me either. – Beni Cherniavsky-Paskin Oct 22 '19 at 15:30