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 '''yum''' to it<ref>Use a repo file such as this one:<pre>
# 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 ''yum update''.
# try a ''dnf upgrade''.
# if that fails, try to understand why, ''rpm -e'' whatever ''yum update'' installed and repeat from step 1.
# 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>yum list obsoletes</pre>
<pre>dnf list obsoletes</pre>
before the ''yum update'' to check what '''yum''' thinks about your new packages<ref>But that won't check scriptlets and other packaging bits so do check ''yum update'' works afterwards.</ref>.
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

A page of the Fonts Special Interest Group

To check an upgrade path works:

  1. find a test Fedora system,
  2. make sure none of the new packages are already installed[1],
  3. install part or all of the old package set,
  4. copy the new packages to a local directory[2],
  5. run createrepo on this directory[3],
  6. point dnf to it[4],
  7. try a dnf upgrade.
  8. 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:

  1. It would confuse the tools.
  2. If you're creating them:
    1. adapt the previous spec file or create a new one,
    2. mock/koji-build the result.
  3. createrepo <directory>
  4. Use a repo file such as this one:
    [tmp]
    name=tmp
    baseurl=file:///tmp/rpm
    enabled=1
    gpgcheck=0
  5. But that won't check scriptlets and other packaging bits so do check dnf upgrade works afterwards.


Fonts in Fedora
The Fonts SIG takes loving care of Fedora fonts. Please join this special interest group if you are interested in creating, improving, packaging, or just suggesting a font. Any help will be appreciated.