slackbuild sbopkg

Aperto da trigg, Sabato 29 Aprile 2017, 20:53:45

Discussione precedente - Discussione successiva

trigg

buondì :) in questi giorni mi sono reinstallato tutti i programmi su slackware usando slackbuild e quindi sbopkg

mi sono salvato anche questo testo perchè magari può servire anche ad altre persone interessate a provare slackware

sbopkg -i " Xfce-Theme-Manager xfce4-volumed-pulse  xfce4-whiskermenu-plugin gigolo "
________________________________________________________________________________________

sbopkg -i " libgtop  libgksu  gksu "

Opening a root Thunar

    Name: Open a root Thunar here
    Command: gksu thunar %f
    File pattern: *
    Appears if selection contains: Directories
________________________________________________________________________________________

sbopkg -i " leafpad smplayer fltk lmms "

sbopkg -i "  kelbt colm ragel gts graphviz uriparser  ffmpeg pepperflash-plugin  freshplayerplugin flashplayer-plugin hplip-plugin "

sbopkg -i " lame wxGTK3 audacity  gst-plugins-bad  brasero  screenfetch ssr  p7zip  unetbootin"

sbopkg -i "aften faad2 twolame gnome-common PyXML gnome-mime-data gst0-python libmp4v2  faac  libunique gnome-media  ORBit2 pyorbit libbonobo  gnome-mime-data gnome-vfs libgnome gnome-python  gnome-python-desktop  libgnomecanvas  libbonoboui libgnomeui soundconverter "

sbopkg -i "bleachbit"

sbopkg -i "enum34  ipaddress six  python3 pycparser  cffi pyasn1 idna asn1crypto  pyparsing  packaging  cryptography  secretstorage python-keyring  wheel"

sbopkg -i " fltk alsamixergui"

sbopkg -i "jdk  libreoffice"

sbopkg -i " ninja  chromium  light-firefox pitivi "


ho installato oltre che ad alcuni plugin di xfce anche gksu con sotto la configurazione per aprire la direcory da root  i plugi per la stampante hp , video audio e browser, simplescreenrecord e le dipendenze di tutti  i programmi inseriti.

la mia domanda è visto che con il comando sbopkg è possibile rimuovere i programmi è anche possibile fare l'aggiornamento dei programmi stessi usando la voce del menu e quindi tenere sempre aggiornato il sistema?
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

#1
Considera che di sbopkg esistono le pagine man, puoi vedere quali sono tutti i comandi disponibili inserendo nel terminale man sbopkg

in particolare per l'update del software io ho sempre trovato comoda la voce nel menu della sua interfaccia e non mi sono mai preoccupato di cercarmi il "come si fa" alternativo.

Tuttavia, leggendo questa pagina https://htmlpreview.github.io/?https://raw.githubusercontent.com/sbopkg/sbopkg/master/tools/sbopkg8.html mi pare di capire che il comando che cerchi sia semplicemente:

sbopkg -c

Poi fammi saper se funziona così lo imparo anch'io... ;)
:ciao:

EDIT:
nel frattempo ci ho provato (dovevo riavviare e cambiare sistema), anche se non avevo pacchetti canditati per l'upgrade, il comando è giusto.


Ricapitolando:

La risposta è si, puoi usare sbopkg anche per aggiornare il software installato. Ma, bada bene, con sbopkg puoi aggiornare solo il software installato con le SlackBuilds, a prescidere dal fatto che tu abbia usato sbopkg o lo abbia compilato artigianalmente.
Per intenderci ancora meglio: puoi aggiornare tutti i pacchetti il cui nome finisce con "...SBo.tgz"

I pacchetti che hai installato con Gslapt e quelli che hai scaricato da pkg.org non sono di competenza di sbopkg.

trigg

quindi se vado nel menu
e seleziono updates posso tenere sempre aggiornato il sistema giusto?

per quanto riguarda il comando sbopkg -c è particamente lo stesso updates dato dal menu


al momento non ho updates da fare e penso che tutto il sistema è aggiornato  :hmm: giusto?

a questo punto credo che non mi serve più usare gslapt se uso sbopkg penso sia meglio ,  anche se per compilare impiega più tempo ho come risultato un pc molto più reattivo  quasi come un'estensione del corpo :)
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

#3
Assolutamente si, con sbopkg -c aggiorni il software installato con le slackbuilds (l'equivalente dell'interfaccia di sbopkg). EDIT: ha solo una funzione informativa, e cioè controllo che sia del software da aggiornare.
Per aggiornare il software delle SlackBuids si usa l'interfaccia di Sbopkg. Se c'è un altro sistema io non l'ho trovato.

Con slackpkg update --> slackpkg install-new --> slackpkg upgrade-all aggiorni il sistema.

Una cosa non esclude l'altra. Il come e il perché ho tentato di spiegarlo QUI.

Questa è in assoluto la maniera più "Slackware" di gestire il sistema.

Io mi compilo anche Xfce usando la Slackbuild che sta nel DVD dei sorgenti. Ci impiego non più di 15 minuti per compilarlo e installarlo.


P.S.

Io uso anche slackpkgplus con i repo "restricted" e "alienbob" per evitare di compilarmi ffmpeg, Chromium e LibreOffice che sono una cosa troppo lunga e seccante da compilare.

trigg

ed è proprio su questo punto che mi piacerebbe avere chiarezza ed ho ancora dubbi o idee confuse.

ho installato tutti i programmi con sbopkg ; nel momento in cui do il comando slackpkg upgrade-all , i programmi compilati ed installati con sbopkg vengono
riscritti e ricompilati da slackpkg vanificando l'installazione fatta con sbopkg?

dopo ho letto in questi giorni il tuo vadedecum raccogliendo le energie e facendomi coraggio tanto da preferire di gran lunga sbopkg a gslapt e i .txz compilati in pkgs.org :

tutto è chiaro fatta eccezione di slackpkgplus che ancora non sono riuscito a mettere in pratica e comprendere a causa del fatto che come ho scritto sopra non mi è chiaro se installare un programma con slackpkg comporta la ricompilazione del file : in sintesi se sono un purista ed uso sbopkg , l'utilizzo di slackpkg e slackpkg+ mi va a "sporcare"(tra virgolette) il sistema e quindi rende inutile l'utilizzo di sbopkg oppure no?
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

Una cosa che deve essere chiara è slackpkg è il tool ufficiale per l'aggiornamento del sistema Slackware ed è indispensabile, comunque e sempre. Slackpkg (da solo) è perfettamente compatibile con sbopkg e devono essere usati entrambi. Non si danno assolutamente fastidio l'un l'altro e, insieme, rappresentano la soluzione più "purista" possibile.

Slackpkgplus, dal momento che è una estensione, estende l'uso di slackpkg a eventuali altri repository. Io lo uso con soli due repos, il resticted e alienbob, che sono mantenuti da Eric Hameleers. per i motivi cui ho accennato precedentemente.
E' una cosa in più, della quale potrei anche fare a meno, ma che mi semplifica la vita :)
Non rappresentano un inquinamento del sistema e sono in piena coerenza con esso.

Se vuoi posso aiutarti a configurarlo. Se ti fa piacere, installa slackpkgplus e fammi sapere quando sei pronto.

trigg

se le cose stanno così ora è tutto molto più chiaro

per esempio non ho trovato in slackbuild chromium-pepperflash , usando  slackpkgplus potrei trovarlo ed installarlo giusto?

sono pronto :)  a te il primo passo ahahhaha non so da dove parite con  slackpkgplus
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

... si trovi anche pepperflash :)

Per cominciare posta l'output di questo comando:

cat /etc/slackpkg/slackpkgplus.conf

trigg

bash-4.3$ su
Password:
bash-4.3# cat /etc/slackpkg/slackpkgplus.conf
cat: /etc/slackpkg/slackpkgplus.conf: File o directory non esistente
bash-4.3#
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

Intanto in comando "cat" non si da root, serve solo a leggere il contenuto di un file (senza modificarlo).

Hai installato slackpkgplus?

No, certo che no... Devi farlo: https://sourceforge.net/projects/slackpkgplus/files/slackpkg%2B-1.7.0-noarch-4mt.txz/download


Poi posta il comando di prima.

trigg

Package slackpkg+-1.7.0-noarch-4mt.txz installed.

bash-4.3# exit
exit
bash-4.3$ cat /etc/slackpkg/slackpkgplus.conf
# Configuration for slackpkg+. See /usr/doc/slackpkg+-*/README for more details
# Please read manpage: "man slackpkgplus.conf" and documentation /usr/doc/slackpkg+-*/README

# Enable (on) / Disable (off) slackpkg+
SLACKPKGPLUS=on

# set to '0' to never show the download progress bar
# set to '1' to show the bar only in download packages (default)
# set to '2' to always show the download bar
# set to '3' for a debug mode
VERBOSE=1

# By default slackpkg+ deny to install 32bit packages.
#
# Set this flag to 'on' allow slackpkg+ to install 32bit packages on a 64bit slackware
# installation (possibly unsafe). Please, do not install both 32 and 64bit of the same
# package to avoid problems, and NEVER upgrade existant 64bit packages with relative 32bit package.
# Do not forget to install the multilibs.
ALLOW32BIT=off

# Enable (1) / Disable (0) the official slackpkg blacklist. May be useful to temporarily skip
# the slackware blacklist. You can also override it from command line:
# 'USEBL=0 slackpkg upgrade-all'
USEBL=1

# Add custom option to 'wget'.
# You can solve the repository indisponibility issue by set a timeout here
WGETOPTS="--timeout=20 --tries=2"

# If you want replace wget with another downloader search DOWNLOADCMD in documentation
# at /usr/doc/slackpkg+-*/README
#DOWNLOADCMD="wget -O"

# Defines if the changelog of any 3rd party repository must be searched in parent URL when not found in base URL.
# Can be set to "on" or "off" (default)
SEARCH_CLOG_INPARENT=on

# Use the cache for metadata files (CHECKSUMS.md5,...). Enable it (on) to speedup the slackpkg update
# process by downloading just new files (see README). Disabled by default (off)
CACHEUPDATE=off

# You can download-only by setting DOWNLOADONLY to 'on'. You may (you should) also use it in commandline
# for example: "DOWNLOADONLY=on slackpkg upgrade-all". Useful for large upgrades.
#DOWNLOADONLY=off

# Enable (on) / Disable (off) notification events (see notifymsg.conf)
#ENABLENOTIFY=off

# Enable (on) / Disable (off) the greylist feature. See /etc/slackpkg/greylist
GREYLIST=on

# Defines if commands 'search' and 'file-search' are case-sensitive (on) or not (off). Default to "on"
SENSITIVE_SEARCH=on

# Defines if command 'file-search' does search Wole Word (on) of accept partial words (off). Note that
# you may obtains many many results searching a short partial word
WW_FILE_SEARCH=on

# Select the show order in dialogbox. Available "package" "repository" "tag" "path" "arch"
SHOWORDER=package

# Allow to show more details of the package in slackpkg info <package>. Accept "none", "basic", "filelist"
DETAILED_INFO=none

# Enable (on) / Disable (off) a Strict GPG Check. A repository should contains packages signed
# with the only original GPG-KEY. In some custom repository may be wanted to mix heterogeneous
# packages; to use that repository set Strict GPG Check to off. P.S: a repository can
# contain just ONE gpg-key; you may manually import the other.
STRICTGPG=on

# If two or more repositories contains some same packages, you can specify
# from which repository you prefer to search it.
# The syntax is "<repository_name>:<package_name>"
# Accepts regular expressions. To give priority to an entire repository use "<repository_name>"

# Examples:
#PKGS_PRIORITY=( restricted:vlc )
# OR
#PKGS_PRIORITY=( myrepo )
#
# if you have two reporitories to give priority you must set both in the same line
#PKGS_PRIORITY=( myrepo restricted:vlc )
#
# if you want to install 'ktown' repository you must set it here
#PKGS_PRIORITY=( ktown )
# and DO NOT MISS to read special instruction on /usr/doc/slackpkg+-*/repositories.txt
#
# If you want a multilib system, uncomment the multilib repository and set:
#PKGS_PRIORITY=( multilib )
#
# (Use /usr/doc/slackpkg+-*/setupmultilib.sh to setup a multilib configuration)
#
# For both multilib and ktown set
#PKGS_PRIORITY=( multilib ktown )

# Otherwise you can try to upgrade a package from a repository that contains a package with the
# same tag of the already installed package. Tipically that means to upgrade a package from the
# same author of the already installed package.
# Note that this method may not works properly where two repositories contains a package with the
# same tag.
# Set TAG_PRIORITY to 'on' to enable this function
TAG_PRIORITY=off

# List repositories you want to use (defined below)
# remember to launch 'slackpkg update' if you modify that row.
#REPOPLUS=( slackpkgplus restricted alienbob slacky )
REPOPLUS=( slackpkgplus )


# Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS)
# GPG Note: after adding/renaming a repository, you must to run 'slackpkg update gpg'
#           some repositories as salixos, have a partial GPG support;
#           for that repositories you may need to run slackpkg with 'slackpkg -checkgpg=off ...'

# Slackware 14.2 - x86_64
#MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/14.2/
#MIRRORPLUS['alienbob']=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64/
#MIRRORPLUS['restricted']=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86_64/
#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.2/

# use this to keep the slackpkg+ package updated to the latest stable release
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/

# use the development branch to use the mainline version and help develop by reporting bugs.
#MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/


# Slackware current - x86_64
#MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/current/

# Local repository:
#MIRRORPLUS['alienbob']=file://repositories/alien/sbrepos/14.2/x86/
#
# Local packages (you do not need metadata nor 'slackpkg update' command):
#MIRRORPLUS['myrepo']=dir://repositories/mypackages/


#
# Supported Repositories (see /usr/doc/slackpkg+-* for details and notes):
#

#slackpkgplus:  http://slakfinder.org/slackpkg+{,dev,1.6,1.7}/
#multilib:      http://bear.alienbase.nl/mirrors/people/alien/multilib/{14.0,14.1,14.2,current}/
#alienbob:      http://bear.alienbase.nl/mirrors/people/alien/sbrepos/{14.0,14.1,14.2,current}/{x86,x86_64}/
#ktown:         http://bear.alienbase.nl/mirrors/alien-kde/{14.1,14.2,current}/{latest,testing}/{x86,x86_64}/
#restricted:    http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/{14.0,14.1,14.2,current}/{x86,x86_64}/
#slacky:        http://repository.slacky.eu/slackware{,64}-{14.0,14.1,14.2}/
#mleddesktop:   http://www.microlinux.fr/microlinux/desktop-{14.1,14.2}-{32,64}bit/
#mledextras:    http://www.microlinux.fr/microlinux/extras-{14.1,14.2}-{32,64}bit/
#mles:          http://www.microlinux.fr/microlinux/server-{14.0,14.1,14.2}-{32,64}bit/
#msb:           http://slackware.uk/msb/{14.0,14.1,14.2,current}/{1.6,1.8,1.10,1.12,1.14,1.15,1.15-gtk3,latest}/{x86,x86_64}/
#csb:           http://slackware.uk/csb/{14.1,14.2}/{x86,x86_64}/
#slackers:      http://slack.conraid.net/repository/slackware64-current/
#slacke18:      http://ngc891.blogdns.net/pub/slacke18/slackware{,64}-{14.1,14.2}/
#studioware:    http://studioware.org/files/packages/slackware{,64}-{14.0,14.1,14.2}/
#slackonly:     http://panos.slackonly.com/pub/packages/{14.1,14.2,current}-{x86,x86_64}/
#rlworkman:     http://rlworkman.net/pkgs/{14.0,14.1,14.2,current}/
#slackel:       http://www.slackel.gr/repo/{i486,x86_64}/current/
#connochaetos:  http://connochaetos.org/slack-n-free/slack-n-free{,64}-{14.1,14.2}/
#slint:         http://slint.fr/packages/{14.0,14.1,14.2}-{i486,x86_64}/
#salixos:       http://download.salixos.org/{i486,x86_64}/{14.0,14.1,14.2}/
bash-4.3$
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

#REPOPLUS=( slackpkgplus restricted alienbob slacky )
REPOPLUS=( slackpkgplus  restricted alienbob )


# Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS)
# GPG Note: after adding/renaming a repository, you must to run 'slackpkg update gpg'
#           some repositories as salixos, have a partial GPG support;
#           for that repositories you may need to run slackpkg with 'slackpkg -checkgpg=off ...'

# Slackware 14.2 - x86_64
#MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/14.2/
MIRRORPLUS['alienbob']=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64/
MIRRORPLUS['restricted']=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86_64/
#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.2/


Ci sono due righe REPOPLUS. Nel secondo rigo ho aggiunto, tra le parentesi, restricted e alienbob.
Fai la stessa cosa nel tuo file (aprilo con nano, da root)

Poi decommenta i relativi MIRRORPLUS come ho fatto io. Chiudi e salva il file. Poi posta nuovamente:

cat /etc/slackpkg/slackpkgplus.conf

E non fare nient'altro perché non abbiamo finito...

trigg

# Set TAG_PRIORITY to 'on' to enable this function
TAG_PRIORITY=off

# List repositories you want to use (defined below)
# remember to launch 'slackpkg update' if you modify that row.
#REPOPLUS=( slackpkgplus restricted alienbob slacky )
REPOPLUS=( slackpkgplus restricted alienbob )



se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

Superciuk

Devi decommentare (togli il cancelletto #) anche i MIRRORPLUS  come ho fatto io nel post precedente (alienbon e restricted)

Usa il comando cat per postare il file, non nano.

Quando avrai modificato i MIRRORPLUS posta ancora l'output (tutto intero) di:

cat /etc/slackpkg/slackpkgplus.conf

trigg

# Slackware 14.2 - x86_64
#MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/14.2/
MIRRORPLUS['alienbob']=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64/
MIRRORPLUS['restricted']=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86_64/
#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.2/



se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...