From Fedora Project Wiki
(New page: <noinclude>{{CompactHeader|fonts-sig}}</noinclude> To check an upgrade path works: # find a test Fedora system, # make sure none of the new packages are already installed<ref>It would con...) |
No edit summary |
||
Line 11: | Line 11: | ||
</ref>, | </ref>, | ||
# run '''createrepo''' on this directory<ref><pre>createrepo <directory></pre></ref>, | # run '''createrepo''' on this directory<ref><pre>createrepo <directory></pre></ref>, | ||
# point ''' | # point '''dnf''' to it<ref>Use a repo file such as this one:<pre> | ||
[tmp] | [tmp] | ||
name=tmp | name=tmp | ||
Line 17: | Line 17: | ||
enabled=1 | enabled=1 | ||
gpgcheck=0</pre></ref>, | gpgcheck=0</pre></ref>, | ||
# try a '' | # try a ''dnf upgrade''. | ||
# if that fails, try to understand why, ''rpm -e'' whatever '' | # if that fails, try to understand why, ''rpm -e'' whatever ''dnf upgrade'' installed and repeat from step 1. | ||
Line 24: | Line 24: | ||
<pre>rpm -qp --obsoletes mypackage</pre> | <pre>rpm -qp --obsoletes mypackage</pre> | ||
… to check the obsoletes declared by one of your new packages and, | … to check the obsoletes declared by one of your new packages and, | ||
<pre> | <pre>dnf list obsoletes</pre> | ||
before the '' | before the ''dnf upgrate'' to check what '''dnf''' thinks about your new packages<ref>But that won't check scriptlets and other packaging bits so do check ''dnf upgrade'' works afterwards.</ref>. | ||
<noinclude> | <noinclude> |
Latest revision as of 11:35, 22 October 2015
To check an upgrade path works:
- find a test Fedora system,
- make sure none of the new packages are already installed[1],
- install part or all of the old package set,
- copy the new packages to a local directory[2],
- run createrepo on this directory[3],
- point dnf to it[4],
- try a dnf upgrade.
- if that fails, try to understand why, rpm -e whatever dnf upgrade installed and repeat from step 1.
You can also use:
rpm -qp --obsoletes mypackage
… to check the obsoletes declared by one of your new packages and,
dnf list obsoletes
before the dnf upgrate to check what dnf thinks about your new packages[5].
Notes: