Features/MediaRepo

From FedoraProject

< Features(Difference between revisions)
Jump to: navigation, search
(add gpk screenshot)
(Current status)
 
(23 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
== Owner ==
 
== Owner ==
 
* Alsadi: [[User:alsadi|Muayyad Alsadi]]
 
* Alsadi: [[User:alsadi|Muayyad Alsadi]]
* email: alsadi [AT] ojuba [D0T] 0RG
+
* email: alsadi [AT] ojuba [D0T] 0RG (with o as in orange not zero, see my FAS account)
  
 
== Current status ==
 
== Current status ==
* Targeted release: [[Releases/{{next}}]]  
+
* Targeted release: [[Releases/?? | Fedora ??]]  
* Last updated: 2009-07-11
+
* Last updated: 2009-08-23
* Percentage of completion: 25%
+
* Percentage of completion: 99%
 +
 
 +
I have completed 4 implementations so far
 +
* DeviceKit
 +
* HAL
 +
* GIO
 +
* os.system('mount')
 +
 
 +
I have implemented it in GIO and it's to be sent upstream after I do some local tests.
 +
After some tests on F11, it seems that there is a [https://www.redhat.com/archives/fedora-devel-list/2009-July/msg01960.html bug in GIO]
 +
 
 +
a small issue needs to be fixed in policykit to allow root to mount the media and the 1% will be done.[http://lists.freedesktop.org/archives/packagekit/2009-August/005288.html]
  
 
== Detailed Description ==
 
== Detailed Description ==
Line 24: Line 35:
 
=== Packagekit ===
 
=== Packagekit ===
  
[[File:Gpk-mediarepo.png]]
+
[[File:Gpk-mediarepo.png|480px|thumb|center|gnome packagekit]]
  
[[File:Kpk-mediarepo.png]]
+
[[File:Kpk-mediarepo2.png|480px|thumb|center|kpackagekit]]
  
 
note: gnome-packagekit should be rebuilt.
 
note: gnome-packagekit should be rebuilt.
 +
 +
=== Yumex NextGen ===
 +
 +
[[File:Yumex-nextgen-ins.png|480px|thumb|center|Yumex-nextgen showing media change dialog]]
 +
 +
[[File:Yumex-nextgen-tr.png|480px|thumb|center|Yumex-nextgen transaction with Fedora 11 Installation media]]
  
 
=== Yumex ===
 
=== Yumex ===
  
[[File:Yumex-fixed.png]]
+
[[File:Yumex-fixed.png|480px|thumb|center|Yumex showing media change dialog]]
  
 
== Scope ==
 
== Scope ==
Line 44: Line 61:
 
# make an installation from DVD media accept the defaults
 
# make an installation from DVD media accept the defaults
 
# add a package that is in the DVD but was not installed by default
 
# add a package that is in the DVD but was not installed by default
 +
 +
I made .src.rpm for Fedora 11 available here:
 +
* [http://www.ojuba.org/downloads/development/source/SRPMS/PackageKit-0.4.8-3.oj3.src.rpm PackageKit-0.4.8-3.oj3.src.rpm]
 +
* [http://www.ojuba.org/downloads/development/source/SRPMS/yumex-2.0.5-7.oj3.src.rpm yumex-2.0.5-7.oj3.src.rpm]
 +
 +
for those who don't want to compile you can find the ready rpms:
 +
* [http://www.ojuba.org/downloads/development/i386/os/Packages/yumex-2.0.5-7.oj3.noarch.rpm yumex-2.0.5-7.oj3.noarch.rpm]
 +
* [http://www.ojuba.org/downloads/development/i386/os/Packages/ browse for the PK packages]
  
 
== User Experience ==
 
== User Experience ==
Line 54: Line 79:
  
 
== Contingency Plan ==
 
== Contingency Plan ==
 
+
* this is an added feature, we are going to use PackageKit and Yumex without it as we used todo.
  
 
== Documentation ==
 
== Documentation ==
 
<!-- Is there upstream documentation on this feature, or notes you have written yourself?  Link to that material here so other interested developers can get involved. -->
 
<!-- Is there upstream documentation on this feature, or notes you have written yourself?  Link to that material here so other interested developers can get involved. -->
*
+
* how to add/remove a media repo
 +
* how to disable/enable a media repo
  
 
== Release Notes ==
 
== Release Notes ==
 
<!-- The Fedora Release Notes inform end-users about what is new in the release.  Examples of past release notes are here: http://docs.fedoraproject.org/release-notes/ -->
 
<!-- The Fedora Release Notes inform end-users about what is new in the release.  Examples of past release notes are here: http://docs.fedoraproject.org/release-notes/ -->
 
<!-- The release notes also help users know how to deal with platform changes such as ABIs/APIs, configuration or data file formats, or upgrade concerns.  If there are any such changes involved in this feature, indicate them here.  You can also link to upstream documentation if it satisfies this need.  This information forms the basis of the release notes edited by the documentation team and shipped with the release. -->
 
<!-- The release notes also help users know how to deal with platform changes such as ABIs/APIs, configuration or data file formats, or upgrade concerns.  If there are any such changes involved in this feature, indicate them here.  You can also link to upstream documentation if it satisfies this need.  This information forms the basis of the release notes edited by the documentation team and shipped with the release. -->
*
+
* This functionality adds the ability in PackageKit and Yumex to utilize installation media (DVD and CDs) and prompt the use insert it which helps people with no internet connection and save bandwidth for those who have internet connection.
  
 
== Comments and Discussion ==
 
== Comments and Discussion ==
 
* See [[Talk:Features/MediaRepo]]
 
* See [[Talk:Features/MediaRepo]]
  
[[Category:FeaturePageIncomplete]]
 
 
<!-- When your feature page is completed and ready for review -->
 
<!-- When your feature page is completed and ready for review -->
 
<!-- remove Category:FeaturePageIncomplete and change it to Category:FeatureReadyForWrangler -->
 
<!-- remove Category:FeaturePageIncomplete and change it to Category:FeatureReadyForWrangler -->
Line 76: Line 101:
  
 
<!-- Note that the current Feature guidelines require useful Scope and Test Plans at certain milestones; QA is responsible for checking these, and will change this category as needed. -->
 
<!-- Note that the current Feature guidelines require useful Scope and Test Plans at certain milestones; QA is responsible for checking these, and will change this category as needed. -->
 +
 +
[[Category:FeaturePageIncomplete]]

Latest revision as of 22:12, 23 August 2009

Contents

[edit] MediaRepo

[edit] Summary

Support CD/DVD media as package sources in common front ends like PackageKit, yumex and maybe yum command line tool.

[edit] Owner

  • Alsadi: Muayyad Alsadi
  • email: alsadi [AT] ojuba [D0T] 0RG (with o as in orange not zero, see my FAS account)

[edit] Current status

  • Targeted release: Fedora ??
  • Last updated: 2009-08-23
  • Percentage of completion: 99%

I have completed 4 implementations so far

  • DeviceKit
  • HAL
  • GIO
  • os.system('mount')

I have implemented it in GIO and it's to be sent upstream after I do some local tests. After some tests on F11, it seems that there is a bug in GIO

a small issue needs to be fixed in policykit to allow root to mount the media and the 1% will be done.[1]

[edit] Detailed Description

Since the retirement of pirut in F9, fedora users have no way of making any use of the several installation CDs or the DVD media, there is no package manager front end that support media repos. The current solution is to copy the rpm files and make a locale repo, which is not a simple task for a typical desktop user.

see also: RHBZ#435625

[edit] Benefit to Fedora

Allow users with no or slow internet connection to make use of the instillation media as a source of packages.

[edit] Packagekit

gnome packagekit
kpackagekit

note: gnome-packagekit should be rebuilt.

[edit] Yumex NextGen

Yumex-nextgen showing media change dialog
Yumex-nextgen transaction with Fedora 11 Installation media

[edit] Yumex

Yumex showing media change dialog

[edit] Scope

  • register a method that handle media sources in self.mediagrabber for classes that are based on YumBase in
    • yumex: src/yumapi.py
    • PackageKit: backends/yum/yumBackend.py class PackageKitYumBase(yum.YumBase):

the method is already implemented in pirut it's called pirutCDHandler, but it depends on HAL, maybe we need to port it to DeviceKit.

[edit] How To Test

  1. make an installation from DVD media accept the defaults
  2. add a package that is in the DVD but was not installed by default

I made .src.rpm for Fedora 11 available here:

for those who don't want to compile you can find the ready rpms:

[edit] User Experience

PackageKit API now supports media change, it should display "Please insert so and so CD/DVD"

[edit] Dependencies

  • PackageKit
  • Yumex
  • Yum (if we want this feature in yum-cli)

[edit] Contingency Plan

  • this is an added feature, we are going to use PackageKit and Yumex without it as we used todo.

[edit] Documentation

  • how to add/remove a media repo
  • how to disable/enable a media repo

[edit] Release Notes

  • This functionality adds the ability in PackageKit and Yumex to utilize installation media (DVD and CDs) and prompt the use insert it which helps people with no internet connection and save bandwidth for those who have internet connection.

[edit] Comments and Discussion