Difference between revisions of "User:JeffSimpson/Upgrading from 0.19 p9163-r1 to 0.20 on Gentoo from portage overlay"

From MythTV Official Wiki
Jump to: navigation, search
(Install new packages)
(Build new packages (overlay))
Line 21: Line 21:
emerge -B mythtv-themes</pre>
emerge -B mythtv-themes</pre>
=== Build new packages (overlay) ===
* Download the mythtv portage overlay from [http://xxx.teppic.homelinux.net/MythTV-0.20-Overlay.tar.bz2 http://xxx.teppic.homelinux.net/MythTV-0.20-Overlay.tar.bz2]
* Extract the overlay to your local portage overlay (/usr/local/portage). You should find that it creates an x11-themes, media-tv and media-plugins directory.
* Check your use flags (I noticed that the ivtv flag is new this version)
<pre># emerge -ptvB mythtv
[ebuild    U ] media-tv/mythtv-0.20 [0.19_p9163-r1] USE="X%* alsa dvd ivtv%* lirc mmx opengl oss%* v4l%* vorbis%* (-altivec) -arts
-backendonly -dbox2 -debug -dvb -frontendonly -ieee1394 -jack -joystick -lcd -xvmc (-oggvorbis%*)" VIDEO_CARDS="nvidia -i810 -via"
0 kB [1]
* Build the packages (but don't install yet):
<pre>emerge -B mythtv
emerge -B mythtv-themes</pre>
== With MythTV Stopped ==
== With MythTV Stopped ==

Revision as of 17:50, 11 October 2006

Note: This wiki entry is in-progress. I don't recommend following it until it is finished

This upgrade was done with minimum downtime and maximum revert-ability in mind. All package building is done BEFORE the point of no return, so if there are any build problems, they will be discovered while the previous version is still running.

While MythTV is still running

Go through these steps while your MythTV system is still working

Back up previous mythtv packages

  • Package up existing mythtv in case you need to revert back:
quickpkg media-tv/mythtv x11-themes/mythtv-themes
  • Package up mythtv plugins (Optional):
quickpkg media-plugins/mythbrowser media-plugins/mythdvd media-plugins/mythgallery media-plugins/mythmusic media-plugins/mythvideo

Build new packages (portage)

  • Add mythtv and mythtv-themes to the packages.leywords file
echo "media-tv/mythtv ~x86" >> /etc/portage/packages.keywords
echo "x11-themes/mythtv-themes ~x86" >> /etc/portage/packages.keywords
  • Build the packages (but don't install yet):
emerge -B mythtv
emerge -B mythtv-themes

With MythTV Stopped

This is the point of no return. Make sure you have some time set aside just in case you run into trouble, or if you won't be in trouble if you miss a few recordings.

Install new packages

  • Stop Mythbackend
/etc/init.d/mythbackend stop
  • Back up database:
mysqldump -u mythtv -p mythtv mythconverg > mythconverg-`date +%F`.sql
  • Alternatively, if you use something like AutoMySQLBackup just run it.
  • Install mythtv (will also install mythtv-themes)
emerge --usepkgonly mythtv
  • Change ownership of storage directory to the mythtv user
chown -R mythtv /mnt/store
  * I actually moved all my recordings to /mnt/store/myth before setting ownership of myth to the myth user.
* Run mythtv-setup
 * This will update the database schema and may take awhile
*Run mythbackend and mythfrontend!
 *This "just worked" for me, nothing else needed!

Note: This wiki entry is in-progress. I don't recommend following it until it is finished