[GUIDA] Usare downgrade su Manjaro stabile

In questa guida vi spiegherò come fare il downgrade di un pacchetto su Manjaro stabile. 

Attenzione: come riportato dalla stessa wiki di Manjaro questa procedura potrebbe far diventare instabile il vostro sistema. Non ci assumiamo nessuna responsabilità se i vostri sistemi potrebbero rompersi. Prima di procedere si consiglia di fare un backup con Timeshift. Usatela con cautela.

Il messaggio riportato quando si effettua il downgrade di un pacchetto riporta questo messaggio:

Downgrading from A.L.A. is disabled on the stable branch. To override this behavior, set DOWNGRADE_FROM_ALA to 1 .
See https://wiki.manjaro.org/index.php?title=Using_Downgrade  for more details.

Esempio per fare il downgrade del pacchetto:

DOWNGRADE_FROM_ALA=1 downgrade mesa

Se non vogliamo fare questo passaggio modifichiamo /usr/bin/downgrade e modifichiamo la seguente riga:

sudo nano /usr/bin/downgrade ( potete usare vim oppure gedit, ecc )
#Disable A.L.A. only in stable branch 
if [ ! "$(pacman-mirrors -aG)" == stable ] ; then
 : "${DOWNGRADE_FROM_ALA:=1}"
else
 echo
 echo "Downgrading from A.L.A. is disabled on the stable branch. To override this behavior, set DOWNGRADE_FRO>
 echo "See https://wiki.manjaro.org/index.php?title=Using_Downgrade  for more details."
 echo
 : "${DOWNGRADE_FROM_ALA:=0}"
fi

ora cambiamo la voce DOWGRADE_FROM_ALA:=0 in 1:

#Disable A.L.A. only in stable branch 
if [ ! "$(pacman-mirrors -aG)" == stable ] ; then 
 : "${DOWNGRADE_FROM_ALA:=1}" 
else 
 echo 
 echo "Downgrading from A.L.A. is disabled on the stable branch. To override this behavior, set DOWNGRADE_FRO> 
 echo "See https://wiki.manjaro.org/index.php?title=Using_Downgrade  for more details." 
 echo 
 : "${DOWNGRADE_FROM_ALA:=1}" 
fi

Se non volete vedere la scritta Downgrading from ALA si disabled basta cancellare le voci echo in questo modo:

#Disable A.L.A. only in stable branch 
if [ ! "$(pacman-mirrors -aG)" == stable ] ; then 
 : "${DOWNGRADE_FROM_ALA:=1}" 
else 
 echo 
 echo "Downgrading from A.L.A. is disabled on the stable branch. To override this behavior, set DOWNGRADE_FRO> 
 echo "See https://wiki.manjaro.org/index.php?title=Using_Downgrade  for more details." 
 echo 
 : "${DOWNGRADE_FROM_ALA:=1}" 
fi

 nel seguente modo 

#Disable A.L.A. only in stable branch 
if [ ! "$(pacman-mirrors -aG)" == stable ] ; then 
 : "${DOWNGRADE_FROM_ALA:=1}" 
else 
 : "${DOWNGRADE_FROM_ALA:=1}" 
fi

Ora potete salvare tranquillamente ed usare downgrade anche nella versione stabile. Usatelo con cautela.

Calogero Scarnà
Calogero Scarnà
Articoli: 299

Newsletter

Inserisci il tuo nome e il tuo indirizzo email qui sotto e iscriviti alla nostra newsletter