[software-management-guide] Organizing extras by chapter names (cont)
by Guillermo Gómez
commit b9279aeaf9eea1a51fd4971fd20333bfd3683f21
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 17:52:20 2013 -0430
Organizing extras by chapter names (cont)
.../yum-plugin-changelog/yum-changelog-dwm.txt | 0
.../yum-changelog-update-yum.txt | 0
.../yum-plugin-downloadonly/dependencias.txt | 0
.../yum-plugin-security/yum-info-sec.txt | 0
.../yum-plugin-security/yum-info-security.txt | 0
.../yum-plugin-security/yum-list-security.txt | 0
.../yum-plugin-security/yum-security-update.txt | 0
.../yum-plugin-verify/verify.conf | 0
8 files changed, 0 insertions(+), 0 deletions(-)
---
diff --git a/es-ES/extras/yum-plugin-changelog/yum-changelog-dwm.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-changelog/yum-changelog-dwm.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-changelog/yum-changelog-dwm.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-changelog/yum-changelog-dwm.txt
diff --git a/es-ES/extras/yum-plugin-changelog/yum-changelog-update-yum.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-changelog/yum-changelog-update-yum.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-changelog/yum-changelog-update-yum.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-changelog/yum-changelog-update-yum.txt
diff --git a/es-ES/extras/yum-plugin-downloadonly/dependencias.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-downloadonly/dependencias.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-downloadonly/dependencias.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-downloadonly/dependencias.txt
diff --git a/es-ES/extras/yum-plugin-security/yum-info-sec.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-info-sec.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-security/yum-info-sec.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-info-sec.txt
diff --git a/es-ES/extras/yum-plugin-security/yum-info-security.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-info-security.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-security/yum-info-security.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-info-security.txt
diff --git a/es-ES/extras/yum-plugin-security/yum-list-security.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-list-security.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-security/yum-list-security.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-list-security.txt
diff --git a/es-ES/extras/yum-plugin-security/yum-security-update.txt b/es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-security-update.txt
similarity index 100%
rename from es-ES/extras/yum-plugin-security/yum-security-update.txt
rename to es-ES/extras/Extensiones_Yum/yum-plugin-security/yum-security-update.txt
diff --git a/es-ES/extras/yum-plugin-verify/verify.conf b/es-ES/extras/Extensiones_Yum/yum-plugin-verify/verify.conf
similarity index 100%
rename from es-ES/extras/yum-plugin-verify/verify.conf
rename to es-ES/extras/Extensiones_Yum/yum-plugin-verify/verify.conf
11 years, 1 month
[software-management-guide] Organizing extras by chapter names (start)
by Guillermo Gómez
commit c6c09f15c5003f5bbbba58519afeb6202910572e
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 17:41:11 2013 -0430
Organizing extras by chapter names (start)
es-ES/Gestion_avanzada_de_repositorios_yum.xml | 2 +-
.../createrepo/createrepo-h.txt | 0
2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/es-ES/Gestion_avanzada_de_repositorios_yum.xml b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
index 0500d1a..da2239e 100644
--- a/es-ES/Gestion_avanzada_de_repositorios_yum.xml
+++ b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
@@ -9,7 +9,7 @@
<section><title>Creación de repositorios con createrepo</title>
<para>En esta sección se creará un repositorio yum de ejemplo a partir de un conjunto de paquetes rpm. Antes es necesario instalar la herramienta <application>createrepo</application>.</para>
<screen># yum install createrepo </screen>
-<screen><xi:include parse="text" href="extras/createrepo/createrepo-h.txt" xmlns:xi="http://www.w3.org/2001/XInclude" /></screen>
+ <screen><xi:include parse="text" href="extras/Gestion_avanzada_de_repositorios_yum/createrepo/createrepo-h.txt" xmlns:xi="http://www.w3.org/2001/XInclude" /></screen>
<para>El procedimiento es simple, hay que crear un directorio para alojar el repositorio, colocar allí los rpms provistos por los desarrolladores y empaquetadores, ejecutar <command>createrepo</command> especificando el directorio donde se encuentran los rpms.</para>
diff --git a/es-ES/extras/createrepo/createrepo-h.txt b/es-ES/extras/Gestion_avanzada_de_repositorios_yum/createrepo/createrepo-h.txt
similarity index 100%
rename from es-ES/extras/createrepo/createrepo-h.txt
rename to es-ES/extras/Gestion_avanzada_de_repositorios_yum/createrepo/createrepo-h.txt
11 years, 1 month
[software-management-guide] CLI output from external file
by Guillermo Gómez
commit 5663244a62631055e9074f66148470a1b04a539e
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 17:26:13 2013 -0430
CLI output from external file
es-ES/Gestion_avanzada_de_repositorios_yum.xml | 58 ------------------------
1 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/es-ES/Gestion_avanzada_de_repositorios_yum.xml b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
index 7de95eb..0500d1a 100644
--- a/es-ES/Gestion_avanzada_de_repositorios_yum.xml
+++ b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
@@ -10,65 +10,7 @@
<para>En esta sección se creará un repositorio yum de ejemplo a partir de un conjunto de paquetes rpm. Antes es necesario instalar la herramienta <application>createrepo</application>.</para>
<screen># yum install createrepo </screen>
<screen><xi:include parse="text" href="extras/createrepo/createrepo-h.txt" xmlns:xi="http://www.w3.org/2001/XInclude" /></screen>
- <screen>
-# createrepo -h
-Usage: genpkgmetadata.py [options]
-Options:
- --version show program's version number and exit
- -h, --help show this help message and exit
- -q, --quiet output nothing except for serious errors
- -v, --verbose output more debugging info.
- --profile output timing/profile info.
- -x EXCLUDES, --excludes=EXCLUDES
- files to exclude
- --basedir=BASEDIR basedir for path to directories
- -u BASEURL, --baseurl=BASEURL
- baseurl to append on all files
- -g GROUPFILE, --groupfile=GROUPFILE
- path to groupfile to include in metadata
- -s SUMTYPE, --checksum=SUMTYPE
- specify the checksum type to use (default: sha256)
- -p, --pretty make sure all xml generated is formatted
- -c CACHEDIR, --cachedir=CACHEDIR
- set path to cache dir
- -C, --checkts check timestamps on files vs the metadata to seeif we
- need to update
- -d, --database create sqlite database files
- --update use the existing repodata to speed up creation of new
- --update-md-path=UPDATE_MD_PATH
- use the existing repodata for --update from this path
- --skip-stat skip the stat() call on a --update, assumes if the
- filename is the same then the file is still the
- same(only use this if you're fairly trusting or
- gullible)
- --split generate split media
- -i PKGLIST, --pkglist=PKGLIST
- use only the files listed in this file from
- thedirectory specified
- -n INCLUDEPKG, --includepkg=INCLUDEPKG
- add this pkg to the list - can be specified multiple
- times
- -o OUTPUTDIR, --outputdir=OUTPUTDIR
- <dir> = optional directory to output to
- -S, --skip-symlinks ignore symlinks of packages
- --changelog-limit=CHANGELOG_LIMIT
- only import the last N changelog entries
- --unique-md-filenames
- include the file's checksum in the filename,helps with
- proxies
- --distro=DISTRO distro tag and optional cpeid:
- --distro'cpeid,textname'
- --content=CONTENT_TAGS
- tags for the content in the repository
- --revision=REVISION user-specified revision for this repository
- --deltas create delta rpms and metadata
- --oldpackagedirs=OLDPACKAGE_PATHS
- paths to look for older pkgs to delta against
- --num-deltas=NUM_DELTAS
- the number of older versions to make deltas against
-
-</screen>
<para>El procedimiento es simple, hay que crear un directorio para alojar el repositorio, colocar allí los rpms provistos por los desarrolladores y empaquetadores, ejecutar <command>createrepo</command> especificando el directorio donde se encuentran los rpms.</para>
<screen>
11 years, 1 month
[software-management-guide] CLI output from external file
by Guillermo Gómez
commit d737271eb3423e85d46468e78557ed4989d5ee10
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 17:19:28 2013 -0430
CLI output from external file
es-ES/Gestion_avanzada_de_repositorios_yum.xml | 1 +
es-ES/extras/createrepo/createrepo-h.txt | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/es-ES/Gestion_avanzada_de_repositorios_yum.xml b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
index 35c7a23..7de95eb 100644
--- a/es-ES/Gestion_avanzada_de_repositorios_yum.xml
+++ b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
@@ -9,6 +9,7 @@
<section><title>Creación de repositorios con createrepo</title>
<para>En esta sección se creará un repositorio yum de ejemplo a partir de un conjunto de paquetes rpm. Antes es necesario instalar la herramienta <application>createrepo</application>.</para>
<screen># yum install createrepo </screen>
+<screen><xi:include parse="text" href="extras/createrepo/createrepo-h.txt" xmlns:xi="http://www.w3.org/2001/XInclude" /></screen>
<screen>
# createrepo -h
Usage: genpkgmetadata.py [options]
diff --git a/es-ES/extras/createrepo/createrepo-h.txt b/es-ES/extras/createrepo/createrepo-h.txt
index d9db863..2bd0e59 100644
--- a/es-ES/extras/createrepo/createrepo-h.txt
+++ b/es-ES/extras/createrepo/createrepo-h.txt
@@ -1,3 +1,5 @@
+$ createrepo -h
+
Usage: genpkgmetadata.py [options]
Options:
11 years, 1 month
[software-management-guide] Inicial change for F18 version
by Guillermo Gómez
commit e11497341aeec6039279767dfed9ac1fa04b6508
Author: Guillermo Gomez S. (Gomix) <guillermo.gomez(a)gmail.com>
Date: Tue Mar 26 14:19:13 2013 -0430
Inicial change for F18 version
es-ES/Book_Info.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/es-ES/Book_Info.xml b/es-ES/Book_Info.xml
index c5cc465..84961a4 100644
--- a/es-ES/Book_Info.xml
+++ b/es-ES/Book_Info.xml
@@ -7,7 +7,7 @@
<title>Manual para gestión del software</title>
<subtitle>La guía definitiva para la gestión del software</subtitle>
<productname>Fedora</productname>
- <productnumber>17</productnumber>
+ <productnumber>18</productnumber>
<edition>1</edition>
<pubsnumber>0</pubsnumber>
<abstract>
11 years, 1 month
[software-management-guide] Rakefile adjusted not to change working directory
by Guillermo Gómez
commit fb1c081ada12d8be5fc31f39009b986fc4ba66f1
Author: Guillermo Gomez S. (Gomix) <guillermo.gomez(a)gmail.com>
Date: Tue Mar 26 13:55:52 2013 -0430
Rakefile adjusted not to change working directory
Rakefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Rakefile b/Rakefile
index 8c3a9ed..6d20992 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,6 +1,7 @@
# encoding: utf-8
#
-Dir::chdir("#{File.dirname(__FILE__)}/lib/tasks")
-Dir::glob("*.rake") { |file| Rake.load_rakefile(file) }
+Dir::chdir("#{File.dirname(__FILE__)}/lib/tasks") do
+ Dir::glob("*.rake") { |file| Rake.load_rakefile(file) }
+end
#task :default => 'html'
11 years, 1 month
[software-management-guide/f17] Rakefile adjusted not to change working directory
by Guillermo Gómez
commit 64ea43f4d37f9750d7e89e0282c33796da916a2a
Author: Guillermo Gomez S. (Gomix) <guillermo.gomez(a)gmail.com>
Date: Tue Mar 26 13:55:52 2013 -0430
Rakefile adjusted not to change working directory
Rakefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Rakefile b/Rakefile
index 8c3a9ed..6d20992 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,6 +1,7 @@
# encoding: utf-8
#
-Dir::chdir("#{File.dirname(__FILE__)}/lib/tasks")
-Dir::glob("*.rake") { |file| Rake.load_rakefile(file) }
+Dir::chdir("#{File.dirname(__FILE__)}/lib/tasks") do
+ Dir::glob("*.rake") { |file| Rake.load_rakefile(file) }
+end
#task :default => 'html'
11 years, 1 month
[software-management-guide] New Rakefile and rake tasks file
by Guillermo Gómez
commit eda933841861add8be5cb2596a8b402c3e3702c4
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 10:51:35 2013 -0430
New Rakefile and rake tasks file
Rakefile | 146 +------------------------------------------
lib/tasks/experimental.rake | 80 +++++++++++++++++++++++
lib/tasks/mock.rake | 26 ++++++++
lib/tasks/publican.rake | 37 +++++++++++
4 files changed, 146 insertions(+), 143 deletions(-)
---
diff --git a/Rakefile b/Rakefile
index 0d88ccb..8c3a9ed 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,146 +1,6 @@
# encoding: utf-8
-# Me interesa ejecutar comandos con Rake, como por ejemplo
-# publican build --format html-single --langs es-VE
#
-# Ya que me es fácil cablear aquí y usar rake -T para hacerme recordar
-#
-#
-task :default => 'html_single'
-
-# TODO
-# 1. Se debería detectar la instalación de publican-fedora
-# 2. Se debería detectar la instalación de mock
-# 3. Falta poder generar la configuración SMG de mock
-
-desc "Actualizar drafts en fedorapeople"
-task :update_drafts do
- # Invocar la construcción de los formatos publicados como draft
- # Comando de sincronización rsync@ssh
-
- # Primero html que es el que uso para devel
- Rake::Task[:html].invoke
- cmd = 'rsync --delete -av /home/gomix/FDP/software-management-guide/tmp/es-ES/html gomix@fedorapeople.org:~/public_html/software-management-guide'
- system(cmd)
-
- Rake::Task[:html_single].invoke
- cmd = 'rsync --delete -av /home/gomix/FDP/software-management-guide/tmp/es-ES/html-single gomix@fedorapeople.org:~/public_html/software-management-guide'
- system(cmd)
-end
-
-desc "Construir documento en formato html-single"
-task :html_single do
- # Borrado de imagenes , Publican me debería permitir hacer eso, aún no lo sé hacer
- cmd = 'rm -rf tmp/es-ES/html-single/images/*'
- system(cmd)
-
- cmd = 'publican build --format html-single --langs es-ES'
- system(cmd)
-end
-
-desc "Construir documento en formato html"
-task :html do
- # Borrado de imagenes , Publican me debería permitir hacer eso
- cmd = 'rm -rf tmp/es-ES/html/images/*'
- system(cmd)
-
- cmd = 'publican build --format html --langs es-ES'
- system(cmd)
-end
-
-desc "Construir documento en formato man"
-task :man do
- cmd = 'publican build --format man --langs es-ES'
- system(cmd)
-end
-
-desc "Construir documento en formato txt"
-task :txt do
- cmd = 'publican build --format txt --langs es-ES'
- system(cmd)
-end
-
-desc "Prepara jaula Fedora 17 SMG"
-task :setmockf17 do
- # TODO: se debería detectar la instalación de mock previamente
- `mock -r fedora-17-SMG-x86-64 --clean`
- `mock -r fedora-17-SMG-x86-64 --init`
- `mock -r fedora-17-SMG-x86-64 --install yum`
- `mock -r fedora-17-SMG-x86-64 --install vim`
-
- # No sé cómo correr por ejemplo pkcon en mock/chroot
- #`mock -r fedora-17-SMG-x86-64 --install PackageKit`
-end
-
-desc "Generar archivos de salida de comandos ejemplos (EXPERIMENTAL)"
-task :exp do
- puts "Por ahora no está haciendo absolutamente nada"
-=begin
-Generación de una jaula general para F17 SMG
-mock -r fedora-17-SMG-x86-64 --init
-
-yum , la configuración por omisión es puesta en rpm.new
-hay que tomar en consideración para uso común.
-¿Puedo colocar la conf por omisión en funcionamiento?
-TODO: Si, pero creo que pierdo todo el cache de mock/yum/rpm.
-Determinar y tomar decisiones, por ahora voy paso a paso.
-
-1er caso yum-plugin-downloadonly
-$ mock -r fedora-17-SMG-x86-64 --clean
-$ mock -r fedora-17-SMG-x86-64 --install yum
-$ mock -r fedora-17-SMG-x86-64 --install vim
-$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-downloadonly
-$ mock -r fedora-17-SMG-x86-64 --shell
-Editar yum.conf en la jaula para habilitar yum-plugins
-stty cols 80 < útil para mantener la salida de los comandos en 80 columnas
-LANG=es_ES.UTF8 su -c "yum --downloadonly install crda"
-
-2do caso yum-plugin-security
-$ mock -r fedora-17-SMG-x86-64 --clean
-$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
-$ mock -r fedora-17-SMG-x86-64 --install yum
-$ mock -r fedora-17-SMG-x86-64 --install vim
-$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-security
-$ mock -r fedora-17-SMG-x86-64 --shell
-Editar yum.conf en la jaula para habilitar yum-plugins
-
-El primer obstáculo serio es la falta de salida como tal al momento de probar.
-
-$ yum list-security
-Complementos cargados:security
-updateinfo list done
-
-Este caso no funciona bien ya que no hay datos para probar.
-Lo único que puedo sacar de este escenario mock es:
-1.- El plugin instala
-2.- El plugin es ejecutado correctamente (pero no hay salida de datos)
-
-3er caso yum history
-$ mock -r fedora-17-SMG-x86-64 --clean
-$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
-$ mock -r fedora-17-SMG-x86-64 --install yum
-$ mock -r fedora-17-SMG-x86-64 --install vim
-
-Si tengo un histórico con algunas transacciones.
-
-# yum.conf
-assumeyes=1 < ¿Se debe ir? El tema es que si se va a automatizar entonces se debe manejar la interactividad del programa. Como primer paso ideal me interesaría no remover la interactividad pero dejar que todo el resto se suceda de forma automática.
-debuglevel=1 < estandar es 2, modificar.
-plugins=1 < faltante, incorporar a conveniencia.
-
-4to caso,no tengo la actualización que deseo para yum reinstall
-usando yum.conf regular (el rpmnew)
-habilitar repo updates-testing (nos encontramos previo al release general)
-yum clean metadata
-HMMMM
-Curioso que:
-yum check-update <> yum --config=/etc/yum.conf check-update
-yum install litmus-0.13-4.fc17.x86_64
-yum -c /etc/yum.conf instal chekc-update litmus
-yum -c /etc/yum.conf reinstall litmus
-...
-Luego de hacer el ejemplo, yum -c /etc/yum.conf history undo 6
-^ Sería bueno obtener el id de la transacción para programáticamente
- manipularlas y poder automatizar ^
-=end
-end
+Dir::chdir("#{File.dirname(__FILE__)}/lib/tasks")
+Dir::glob("*.rake") { |file| Rake.load_rakefile(file) }
+#task :default => 'html'
diff --git a/lib/tasks/experimental.rake b/lib/tasks/experimental.rake
new file mode 100644
index 0000000..b7b3325
--- /dev/null
+++ b/lib/tasks/experimental.rake
@@ -0,0 +1,80 @@
+# encoding: utf-8
+# TODO
+# 1. Se debería detectar la instalación de mock
+
+namespace :experimental do
+
+desc "Generar archivos de salida de comandos ejemplos (EXPERIMENTAL)"
+task :exp do
+ puts "Por ahora no esta haciendo absolutamente nada"
+=begin
+Generación de una jaula general para F17 SMG
+mock -r fedora-17-SMG-x86-64 --init
+
+yum , la configuración por omisión es puesta en rpm.new
+hay que tomar en consideración para uso común.
+¿Puedo colocar la conf por omisión en funcionamiento?
+TODO: Si, pero creo que pierdo todo el cache de mock/yum/rpm.
+Determinar y tomar decisiones, por ahora voy paso a paso.
+
+1er caso yum-plugin-downloadonly
+$ mock -r fedora-17-SMG-x86-64 --clean
+$ mock -r fedora-17-SMG-x86-64 --install yum
+$ mock -r fedora-17-SMG-x86-64 --install vim
+$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-downloadonly
+$ mock -r fedora-17-SMG-x86-64 --shell
+Editar yum.conf en la jaula para habilitar yum-plugins
+stty cols 80 < útil para mantener la salida de los comandos en 80 columnas
+LANG=es_ES.UTF8 su -c "yum --downloadonly install crda"
+
+2do caso yum-plugin-security
+$ mock -r fedora-17-SMG-x86-64 --clean
+$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
+$ mock -r fedora-17-SMG-x86-64 --install yum
+$ mock -r fedora-17-SMG-x86-64 --install vim
+$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-security
+$ mock -r fedora-17-SMG-x86-64 --shell
+Editar yum.conf en la jaula para habilitar yum-plugins
+
+El primer obstáculo serio es la falta de salida como tal al momento de probar.
+
+$ yum list-security
+Complementos cargados:security
+updateinfo list done
+
+Este caso no funciona bien ya que no hay datos para probar.
+Lo único que puedo sacar de este escenario mock es:
+1.- El plugin instala
+2.- El plugin es ejecutado correctamente (pero no hay salida de datos)
+
+3er caso yum history
+$ mock -r fedora-17-SMG-x86-64 --clean
+$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
+$ mock -r fedora-17-SMG-x86-64 --install yum
+$ mock -r fedora-17-SMG-x86-64 --install vim
+
+Si tengo un histórico con algunas transacciones.
+
+# yum.conf
+assumeyes=1 < ¿Se debe ir? El tema es que si se va a automatizar entonces se debe manejar la interactividad del programa. Como primer paso ideal me interesaría no remover la interactividad pero dejar que todo el resto se suceda de forma automática.
+debuglevel=1 < estandar es 2, modificar.
+plugins=1 < faltante, incorporar a conveniencia.
+
+4to caso,no tengo la actualización que deseo para yum reinstall
+usando yum.conf regular (el rpmnew)
+habilitar repo updates-testing (nos encontramos previo al release general)
+yum clean metadata
+HMMMM
+Curioso que:
+yum check-update <> yum --config=/etc/yum.conf check-update
+yum install litmus-0.13-4.fc17.x86_64
+yum -c /etc/yum.conf instal chekc-update litmus
+yum -c /etc/yum.conf reinstall litmus
+...
+Luego de hacer el ejemplo, yum -c /etc/yum.conf history undo 6
+^ Sería bueno obtener el id de la transacción para programáticamente
+ manipularlas y poder automatizar ^
+=end
+end
+
+end
diff --git a/lib/tasks/mock.rake b/lib/tasks/mock.rake
new file mode 100644
index 0000000..645d047
--- /dev/null
+++ b/lib/tasks/mock.rake
@@ -0,0 +1,26 @@
+# encoding: utf-8
+# TODO
+# 1. Se debería detectar la instalación de mock
+# 2. Falta poder generar la configuración SMG de mock
+
+namespace :mock do
+
+desc "Prepara jaula Fedora 17 SMG"
+task :setf17 do
+ # TODO: se debería detectar la instalación de mock previamente
+ `mock -r fedora-17-SMG-x86-64 --clean`
+ `mock -r fedora-17-SMG-x86-64 --init`
+ `mock -r fedora-17-SMG-x86-64 --install yum`
+ `mock -r fedora-17-SMG-x86-64 --install vim`
+end
+
+desc "Prepara jaula Fedora 18 SMG"
+task :setf18 do
+ # TODO: se debería detectar la instalación de mock previamente
+ `mock -r fedora-18-SMG-x86-64 --clean`
+ `mock -r fedora-18-SMG-x86-64 --init`
+ `mock -r fedora-18-SMG-x86-64 --install yum`
+ `mock -r fedora-18-SMG-x86-64 --install vim`
+end
+
+end
diff --git a/lib/tasks/publican.rake b/lib/tasks/publican.rake
new file mode 100644
index 0000000..79f5a34
--- /dev/null
+++ b/lib/tasks/publican.rake
@@ -0,0 +1,37 @@
+# encoding: utf-8
+# TODO
+# 1. Se debería detectar la instalación de publican-fedora
+
+namespace :publican do
+
+desc "Construir documento en formato html-single"
+task :html_single do
+ cmd = 'publican build --format html-single --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato html"
+task :html do
+ cmd = 'publican build --format html --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato man"
+task :man do
+ cmd = 'publican build --format man --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato txt"
+task :txt do
+ cmd = 'publican build --format txt --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato epub"
+task :epub do
+ cmd = 'publican build --format epub --langs es-ES'
+ system(cmd)
+end
+
+end
11 years, 1 month
[software-management-guide/f17] Pending changes for Gestion avanzada de repositorios
by Guillermo Gómez
commit 9b30ff880b08159d2d57065cb405344da1dfcabc
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 11:31:01 2013 -0430
Pending changes for Gestion avanzada de repositorios
es-ES/Gestion_avanzada_de_repositorios_yum.xml | 89 ++++-------------------
1 files changed, 16 insertions(+), 73 deletions(-)
---
diff --git a/es-ES/Gestion_avanzada_de_repositorios_yum.xml b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
index 35c7a23..adcd50a 100644
--- a/es-ES/Gestion_avanzada_de_repositorios_yum.xml
+++ b/es-ES/Gestion_avanzada_de_repositorios_yum.xml
@@ -9,89 +9,32 @@
<section><title>Creación de repositorios con createrepo</title>
<para>En esta sección se creará un repositorio yum de ejemplo a partir de un conjunto de paquetes rpm. Antes es necesario instalar la herramienta <application>createrepo</application>.</para>
<screen># yum install createrepo </screen>
- <screen>
-# createrepo -h
-Usage: genpkgmetadata.py [options]
+
+<screen><xi:include parse="text" href="extras/createrepo/createrepo-h.txt" xmlns:xi="http://www.w3.org/2001/XInclude" /></screen>
-Options:
- --version show program's version number and exit
- -h, --help show this help message and exit
- -q, --quiet output nothing except for serious errors
- -v, --verbose output more debugging info.
- --profile output timing/profile info.
- -x EXCLUDES, --excludes=EXCLUDES
- files to exclude
- --basedir=BASEDIR basedir for path to directories
- -u BASEURL, --baseurl=BASEURL
- baseurl to append on all files
- -g GROUPFILE, --groupfile=GROUPFILE
- path to groupfile to include in metadata
- -s SUMTYPE, --checksum=SUMTYPE
- specify the checksum type to use (default: sha256)
- -p, --pretty make sure all xml generated is formatted
- -c CACHEDIR, --cachedir=CACHEDIR
- set path to cache dir
- -C, --checkts check timestamps on files vs the metadata to seeif we
- need to update
- -d, --database create sqlite database files
- --update use the existing repodata to speed up creation of new
- --update-md-path=UPDATE_MD_PATH
- use the existing repodata for --update from this path
- --skip-stat skip the stat() call on a --update, assumes if the
- filename is the same then the file is still the
- same(only use this if you're fairly trusting or
- gullible)
- --split generate split media
- -i PKGLIST, --pkglist=PKGLIST
- use only the files listed in this file from
- thedirectory specified
- -n INCLUDEPKG, --includepkg=INCLUDEPKG
- add this pkg to the list - can be specified multiple
- times
- -o OUTPUTDIR, --outputdir=OUTPUTDIR
- <dir> = optional directory to output to
- -S, --skip-symlinks ignore symlinks of packages
- --changelog-limit=CHANGELOG_LIMIT
- only import the last N changelog entries
- --unique-md-filenames
- include the file's checksum in the filename,helps with
- proxies
- --distro=DISTRO distro tag and optional cpeid:
- --distro'cpeid,textname'
- --content=CONTENT_TAGS
- tags for the content in the repository
- --revision=REVISION user-specified revision for this repository
- --deltas create delta rpms and metadata
- --oldpackagedirs=OLDPACKAGE_PATHS
- paths to look for older pkgs to delta against
- --num-deltas=NUM_DELTAS
- the number of older versions to make deltas against
-
-</screen>
-<para>El procedimiento es simple, hay que crear un directorio para alojar el repositorio, colocar allí los rpms provistos por los desarrolladores y empaquetadores, ejecutar <command>createrepo</command> especificando el directorio donde se encuentran los rpms.</para>
+<para>El procedimiento básico es simple, hay que crear un directorio para alojar el repositorio, colocar allí los rpms provistos por los desarrolladores y empaquetadores, ejecutar <command>createrepo</command> especificando el directorio donde se encuentran los rpms.</para>
<screen>
# mkdir /var/www/html/x86_64/
# cp -ar /home/makerpm/rpmbuild/RPMS/x86_64/*rpm /var/www/html/x86_64/
# createrepo --verbose /var/www/html/x86_64/
-1/14 - dhcp_probe-1.3.0-2.fc13.x86_64.rpm
-2/14 - dhcp_probe-debuginfo-1.3.0-2.fc13.x86_64.rpm
-3/14 - rubygem-pg-0.9.0-1.fc13.x86_64.rpm
-4/14 - dhcp_probe-1.3.0-4.fc13.x86_64.rpm
-5/14 - iptables-debuginfo-1.4.5-1.fc12.x86_64.rpm
-6/14 - passenger-debuginfo-2.2.15-1.fc13.x86_64.rpm
-7/14 - iptables-ipv6-1.4.5-1.fc12.x86_64.rpm
-8/14 - dhcp_probe-debuginfo-1.3.0-4.fc13.x86_64.rpm
-9/14 - iptables-devel-1.4.5-1.fc12.x86_64.rpm
-10/14 - dhcp_probe-debuginfo-1.3.0-3.fc13.x86_64.rpm
-11/14 - dhcp_probe-1.3.0-3.fc13.x86_64.rpm
-12/14 - dhcp_probe-debuginfo-1.3.0-1.fc13.x86_64.rpm
-13/14 - passenger-2.2.15-1.fc13.x86_64.rpm
-14/14 - iptables-1.4.5-1.fc12.x86_64.rpm
+Spawning worker 0 with 4 pkgs
+Worker 0: reading rubygem-pg-0.12.2-2.fc17.x86_64.rpm
+Worker 0: reading fwsnort-1.6.2-1.fc17.noarch.rpm
+Workers Finished
+Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata
+Generating sqlite DBs
+Starting other db creation: Fri Feb 1 08:50:57 2013
+Ending other db creation: Fri Feb 1 08:50:58 2013
+Starting filelists db creation: Fri Feb 1 08:50:58 2013
+Ending filelists db creation: Fri Feb 1 08:50:58 2013
+Starting primary db creation: Fri Feb 1 08:50:58 2013
+Ending primary db creation: Fri Feb 1 08:50:59 2013
+Sqlite DBs complete
</screen>
<para>Se puede verificar fácilmente que el proceso previo ha creado un directorio <filename class="directory">repodata</filename> con los metadatos que representan y conforman al nuevo repositorio.</para>
11 years, 1 month
[software-management-guide/f17] New Rakefile and rake tasks file
by Guillermo Gómez
commit e88f654575a87f1b183f8701896178c5669abc9f
Author: Guillermo Gómez <gomix(a)fedoraproject.org>
Date: Tue Mar 26 10:51:35 2013 -0430
New Rakefile and rake tasks file
Rakefile | 146 +------------------------------------------
lib/tasks/experimental.rake | 80 +++++++++++++++++++++++
lib/tasks/mock.rake | 26 ++++++++
lib/tasks/publican.rake | 37 +++++++++++
4 files changed, 146 insertions(+), 143 deletions(-)
---
diff --git a/Rakefile b/Rakefile
index 0d88ccb..8c3a9ed 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,146 +1,6 @@
# encoding: utf-8
-# Me interesa ejecutar comandos con Rake, como por ejemplo
-# publican build --format html-single --langs es-VE
#
-# Ya que me es fácil cablear aquí y usar rake -T para hacerme recordar
-#
-#
-task :default => 'html_single'
-
-# TODO
-# 1. Se debería detectar la instalación de publican-fedora
-# 2. Se debería detectar la instalación de mock
-# 3. Falta poder generar la configuración SMG de mock
-
-desc "Actualizar drafts en fedorapeople"
-task :update_drafts do
- # Invocar la construcción de los formatos publicados como draft
- # Comando de sincronización rsync@ssh
-
- # Primero html que es el que uso para devel
- Rake::Task[:html].invoke
- cmd = 'rsync --delete -av /home/gomix/FDP/software-management-guide/tmp/es-ES/html gomix@fedorapeople.org:~/public_html/software-management-guide'
- system(cmd)
-
- Rake::Task[:html_single].invoke
- cmd = 'rsync --delete -av /home/gomix/FDP/software-management-guide/tmp/es-ES/html-single gomix@fedorapeople.org:~/public_html/software-management-guide'
- system(cmd)
-end
-
-desc "Construir documento en formato html-single"
-task :html_single do
- # Borrado de imagenes , Publican me debería permitir hacer eso, aún no lo sé hacer
- cmd = 'rm -rf tmp/es-ES/html-single/images/*'
- system(cmd)
-
- cmd = 'publican build --format html-single --langs es-ES'
- system(cmd)
-end
-
-desc "Construir documento en formato html"
-task :html do
- # Borrado de imagenes , Publican me debería permitir hacer eso
- cmd = 'rm -rf tmp/es-ES/html/images/*'
- system(cmd)
-
- cmd = 'publican build --format html --langs es-ES'
- system(cmd)
-end
-
-desc "Construir documento en formato man"
-task :man do
- cmd = 'publican build --format man --langs es-ES'
- system(cmd)
-end
-
-desc "Construir documento en formato txt"
-task :txt do
- cmd = 'publican build --format txt --langs es-ES'
- system(cmd)
-end
-
-desc "Prepara jaula Fedora 17 SMG"
-task :setmockf17 do
- # TODO: se debería detectar la instalación de mock previamente
- `mock -r fedora-17-SMG-x86-64 --clean`
- `mock -r fedora-17-SMG-x86-64 --init`
- `mock -r fedora-17-SMG-x86-64 --install yum`
- `mock -r fedora-17-SMG-x86-64 --install vim`
-
- # No sé cómo correr por ejemplo pkcon en mock/chroot
- #`mock -r fedora-17-SMG-x86-64 --install PackageKit`
-end
-
-desc "Generar archivos de salida de comandos ejemplos (EXPERIMENTAL)"
-task :exp do
- puts "Por ahora no está haciendo absolutamente nada"
-=begin
-Generación de una jaula general para F17 SMG
-mock -r fedora-17-SMG-x86-64 --init
-
-yum , la configuración por omisión es puesta en rpm.new
-hay que tomar en consideración para uso común.
-¿Puedo colocar la conf por omisión en funcionamiento?
-TODO: Si, pero creo que pierdo todo el cache de mock/yum/rpm.
-Determinar y tomar decisiones, por ahora voy paso a paso.
-
-1er caso yum-plugin-downloadonly
-$ mock -r fedora-17-SMG-x86-64 --clean
-$ mock -r fedora-17-SMG-x86-64 --install yum
-$ mock -r fedora-17-SMG-x86-64 --install vim
-$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-downloadonly
-$ mock -r fedora-17-SMG-x86-64 --shell
-Editar yum.conf en la jaula para habilitar yum-plugins
-stty cols 80 < útil para mantener la salida de los comandos en 80 columnas
-LANG=es_ES.UTF8 su -c "yum --downloadonly install crda"
-
-2do caso yum-plugin-security
-$ mock -r fedora-17-SMG-x86-64 --clean
-$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
-$ mock -r fedora-17-SMG-x86-64 --install yum
-$ mock -r fedora-17-SMG-x86-64 --install vim
-$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-security
-$ mock -r fedora-17-SMG-x86-64 --shell
-Editar yum.conf en la jaula para habilitar yum-plugins
-
-El primer obstáculo serio es la falta de salida como tal al momento de probar.
-
-$ yum list-security
-Complementos cargados:security
-updateinfo list done
-
-Este caso no funciona bien ya que no hay datos para probar.
-Lo único que puedo sacar de este escenario mock es:
-1.- El plugin instala
-2.- El plugin es ejecutado correctamente (pero no hay salida de datos)
-
-3er caso yum history
-$ mock -r fedora-17-SMG-x86-64 --clean
-$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
-$ mock -r fedora-17-SMG-x86-64 --install yum
-$ mock -r fedora-17-SMG-x86-64 --install vim
-
-Si tengo un histórico con algunas transacciones.
-
-# yum.conf
-assumeyes=1 < ¿Se debe ir? El tema es que si se va a automatizar entonces se debe manejar la interactividad del programa. Como primer paso ideal me interesaría no remover la interactividad pero dejar que todo el resto se suceda de forma automática.
-debuglevel=1 < estandar es 2, modificar.
-plugins=1 < faltante, incorporar a conveniencia.
-
-4to caso,no tengo la actualización que deseo para yum reinstall
-usando yum.conf regular (el rpmnew)
-habilitar repo updates-testing (nos encontramos previo al release general)
-yum clean metadata
-HMMMM
-Curioso que:
-yum check-update <> yum --config=/etc/yum.conf check-update
-yum install litmus-0.13-4.fc17.x86_64
-yum -c /etc/yum.conf instal chekc-update litmus
-yum -c /etc/yum.conf reinstall litmus
-...
-Luego de hacer el ejemplo, yum -c /etc/yum.conf history undo 6
-^ Sería bueno obtener el id de la transacción para programáticamente
- manipularlas y poder automatizar ^
-=end
-end
+Dir::chdir("#{File.dirname(__FILE__)}/lib/tasks")
+Dir::glob("*.rake") { |file| Rake.load_rakefile(file) }
+#task :default => 'html'
diff --git a/lib/tasks/experimental.rake b/lib/tasks/experimental.rake
new file mode 100644
index 0000000..b7b3325
--- /dev/null
+++ b/lib/tasks/experimental.rake
@@ -0,0 +1,80 @@
+# encoding: utf-8
+# TODO
+# 1. Se debería detectar la instalación de mock
+
+namespace :experimental do
+
+desc "Generar archivos de salida de comandos ejemplos (EXPERIMENTAL)"
+task :exp do
+ puts "Por ahora no esta haciendo absolutamente nada"
+=begin
+Generación de una jaula general para F17 SMG
+mock -r fedora-17-SMG-x86-64 --init
+
+yum , la configuración por omisión es puesta en rpm.new
+hay que tomar en consideración para uso común.
+¿Puedo colocar la conf por omisión en funcionamiento?
+TODO: Si, pero creo que pierdo todo el cache de mock/yum/rpm.
+Determinar y tomar decisiones, por ahora voy paso a paso.
+
+1er caso yum-plugin-downloadonly
+$ mock -r fedora-17-SMG-x86-64 --clean
+$ mock -r fedora-17-SMG-x86-64 --install yum
+$ mock -r fedora-17-SMG-x86-64 --install vim
+$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-downloadonly
+$ mock -r fedora-17-SMG-x86-64 --shell
+Editar yum.conf en la jaula para habilitar yum-plugins
+stty cols 80 < útil para mantener la salida de los comandos en 80 columnas
+LANG=es_ES.UTF8 su -c "yum --downloadonly install crda"
+
+2do caso yum-plugin-security
+$ mock -r fedora-17-SMG-x86-64 --clean
+$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
+$ mock -r fedora-17-SMG-x86-64 --install yum
+$ mock -r fedora-17-SMG-x86-64 --install vim
+$ mock -r fedora-17-SMG-x86-64 --install yum-plugin-security
+$ mock -r fedora-17-SMG-x86-64 --shell
+Editar yum.conf en la jaula para habilitar yum-plugins
+
+El primer obstáculo serio es la falta de salida como tal al momento de probar.
+
+$ yum list-security
+Complementos cargados:security
+updateinfo list done
+
+Este caso no funciona bien ya que no hay datos para probar.
+Lo único que puedo sacar de este escenario mock es:
+1.- El plugin instala
+2.- El plugin es ejecutado correctamente (pero no hay salida de datos)
+
+3er caso yum history
+$ mock -r fedora-17-SMG-x86-64 --clean
+$ mock -r fedora-17-SMG-x86-64 --init (2minutos)
+$ mock -r fedora-17-SMG-x86-64 --install yum
+$ mock -r fedora-17-SMG-x86-64 --install vim
+
+Si tengo un histórico con algunas transacciones.
+
+# yum.conf
+assumeyes=1 < ¿Se debe ir? El tema es que si se va a automatizar entonces se debe manejar la interactividad del programa. Como primer paso ideal me interesaría no remover la interactividad pero dejar que todo el resto se suceda de forma automática.
+debuglevel=1 < estandar es 2, modificar.
+plugins=1 < faltante, incorporar a conveniencia.
+
+4to caso,no tengo la actualización que deseo para yum reinstall
+usando yum.conf regular (el rpmnew)
+habilitar repo updates-testing (nos encontramos previo al release general)
+yum clean metadata
+HMMMM
+Curioso que:
+yum check-update <> yum --config=/etc/yum.conf check-update
+yum install litmus-0.13-4.fc17.x86_64
+yum -c /etc/yum.conf instal chekc-update litmus
+yum -c /etc/yum.conf reinstall litmus
+...
+Luego de hacer el ejemplo, yum -c /etc/yum.conf history undo 6
+^ Sería bueno obtener el id de la transacción para programáticamente
+ manipularlas y poder automatizar ^
+=end
+end
+
+end
diff --git a/lib/tasks/mock.rake b/lib/tasks/mock.rake
new file mode 100644
index 0000000..645d047
--- /dev/null
+++ b/lib/tasks/mock.rake
@@ -0,0 +1,26 @@
+# encoding: utf-8
+# TODO
+# 1. Se debería detectar la instalación de mock
+# 2. Falta poder generar la configuración SMG de mock
+
+namespace :mock do
+
+desc "Prepara jaula Fedora 17 SMG"
+task :setf17 do
+ # TODO: se debería detectar la instalación de mock previamente
+ `mock -r fedora-17-SMG-x86-64 --clean`
+ `mock -r fedora-17-SMG-x86-64 --init`
+ `mock -r fedora-17-SMG-x86-64 --install yum`
+ `mock -r fedora-17-SMG-x86-64 --install vim`
+end
+
+desc "Prepara jaula Fedora 18 SMG"
+task :setf18 do
+ # TODO: se debería detectar la instalación de mock previamente
+ `mock -r fedora-18-SMG-x86-64 --clean`
+ `mock -r fedora-18-SMG-x86-64 --init`
+ `mock -r fedora-18-SMG-x86-64 --install yum`
+ `mock -r fedora-18-SMG-x86-64 --install vim`
+end
+
+end
diff --git a/lib/tasks/publican.rake b/lib/tasks/publican.rake
new file mode 100644
index 0000000..79f5a34
--- /dev/null
+++ b/lib/tasks/publican.rake
@@ -0,0 +1,37 @@
+# encoding: utf-8
+# TODO
+# 1. Se debería detectar la instalación de publican-fedora
+
+namespace :publican do
+
+desc "Construir documento en formato html-single"
+task :html_single do
+ cmd = 'publican build --format html-single --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato html"
+task :html do
+ cmd = 'publican build --format html --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato man"
+task :man do
+ cmd = 'publican build --format man --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato txt"
+task :txt do
+ cmd = 'publican build --format txt --langs es-ES'
+ system(cmd)
+end
+
+desc "Construir documento en formato epub"
+task :epub do
+ cmd = 'publican build --format epub --langs es-ES'
+ system(cmd)
+end
+
+end
11 years, 1 month