Dica :: atualização do SBOPKG


Versa a presente sobre a atualização do simples e eficiente Sbopkg em seu Slackware.

Para tal, abra um terminal e execute as linhas abaixo, seja como o seu alter-ego root ou com sua forma possuída, o sudo, exemplificada aqui neste que vos escreve:

$ sudo sbopkg -u
$ sudo upgradepkg --install-new /home/edps/SlackBuilds/Packages/sbopkg-0.38.1-noarch-1_wsr.tgz

Feito isto, faça uma cópia de seu arquivo /etc/sbopkg.conf (apenas no caso de tê-lo modificado), o que é o meu caso:

$ sudo cp -av /etc/sbopkg/sbopkg.conf /etc/sbopkg/sbopkg.conf-OLD

Este slideshow necessita de JavaScript.

Realizada a cópia de segurança, execute o comando abaixo e tecle O para substituir o antigo pelo novo /etc/sbopkg/sbopkg.conf:

$ sudo slackpkg new-config

sbopkg-0-38-1-004

Faça as edições necessárias no arquivo /etc/sbopkg.conf (se for o caso), e em seguida para atualizar todos os seus SlackBuilds:

$ sudo sbopkg -r
$ sudo sbopkg -c

Este slideshow necessita de JavaScript.

E a título de informação, demonstro abaixo o meu /etc/sbopkg.conf, bastante modificado em relação ao original:

# $Id$
#
# Please read the sbopkg.conf(5) man page for information about this
# configuration file, including an explanation of how to set these
# variables.

# The following variables are used by sbopkg and by the SlackBuild
# scripts themselves.  They must be exported for this reason.
export TMP=${TMP:-/tmp/SBo}
export OUTPUT=${OUTPUT:-/home/edps/SlackBuilds/Packages}

# The following are variables used by sbopkg.  Any of these variables
# could be exported, if desired.

# Path variables
LOGFILE=${LOGFILE:-/var/log/sbopkg/sbopkg-build-log}
QUEUEDIR=${QUEUEDIR:-/var/lib/sbopkg/queues}
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
# sbopkg's temporary directory (where its internal temporary files are
# kept and where packages are made prior to being moved to OUTPUT)
# defaults to /tmp/sbopkg.XXXXXX where 'XXXXXX' is a random string. If
# /tmp is not a suitable containing directory, pass in an alternate
# TMPDIR or modify the following variable. This is actually a mktemp(1)
# variable.
export TMPDIR=${TMPDIR:-/tmp}

# Other variables:
CLEANUP=${CLEANUP:-YES}
DEBUG_UPDATES=${DEBUG_UPDATES:-1}
KEEPLOG=${KEEPLOG:-NO}
MKDIR_PROMPT=${MKDIR_PROMPT:-NO}
NICE=${NICE:-10}
REPO_BRANCH=${REPO_BRANCH:-14.2}
REPO_NAME=${REPO_NAME:-SBo}

# The following variable determines if multiple instances of sbopkg can
# be run simultaneously. It is *strongly* recommended that this value be
# set to NO. Do not set it to YES without first reading the
# sbopkg.conf(5) man page.
ALLOW_MULTI=${ALLOW_MULTI:-YES}

# The following variables are required and can be tweaked if desired,
# although this is not recommended.  Note:  rsync already uses
# --archive, --delete, --no-owner, and --exclude in the main sbopkg
# script so there is no need to add those flags here.
DIFF=${DIFF:-diff}
DIFFOPTS=${DIFFOPTS:--u}
RSYNCFLAGS="${RSYNCFLAGS:---verbose --timeout=30}"
WGETFLAGS="${WGETFLAGS:--c --no-check-certificate --progress=bar:force --timeout=30 --tries=5}"

# SRC_REPO defaults to "http://slackware.uk/sbosrcarch". To use
# a different repository, uncomment and edit this variable. The value
# must be the URL of the directory containing the by-name and by-md5
# sub directories, and should NOT have a trailing slash.
SRC_REPO="http://slackware.uk/sbosrcarch"

De novidade nesta nova versão (no fim do arquivo e já descomentada), está o fato de termos a nossa disposição um outro local para download dos sources de programas (em caso de problemas no download dos links originais), ainda não testei, mas creio que seja este o motivo de sua inclusão:

# SRC_REPO defaults to "http://slackware.uk/sbosrcarch". To use
# a different repository, uncomment and edit this variable. The value
# must be the URL of the directory containing the by-name and by-md5
# sub directories, and should NOT have a trailing slash.
SRC_REPO="http://slackware.uk/sbosrcarch"

E se você não tem o sbopkg instalado em seu Slackware, sinto muito mas você terá que ler isto:

HOW-TO :: INSTALAÇÃO DO SBOPKG NO SLACKWARE

Basta saber, que o atual link para download é este:

https://github.com/sbopkg/sbopkg/releases/download/0.38.1/sbopkg-0.38.1-noarch-1_wsr.tgz

e no mais: happy Slackin!:

Dica :: atualização do SBOPKG

Deixe um comentário