Ppa-purge - disables a PPA and reverts to official packages

U poplavi raznih ppa repozitorija, može vam se desiti da dodate neki repos, pa još plus uradite upgrade originalnih paketa (instalirate neki paketić koji je iz tog ppa repozitorija)… sve je to super.

E sad situacija u kojoj želite da deaktivirate repos i da vratite pakete na “sve kako je bilo”… peglancija

zato fino instalirate ppa-purge

npr. dodate ovaj repos

instalirate

sudo apt-get update sudo apt-get install chromium-browser
(chromium-browser 17.0.946.0~svn20111121r110888 Chromium browser)

e sad revert na staro stanje, ppa-purge se pobrine da ukine repos, sve pakete instalirane iz repos i ako je neki paket iz reposa pregazio stari paket uradi se downgrade, ljepota :slight_smile:

[code]Updating packages lists
PPA to be removed: chromium-daily ppa
comm: file 2 is not in sorted order
Package revert list generated:
chromium-browser/oneiric chromium-browser-l10n/oneiric
chromium-codecs-ffmpeg/oneiric

Disabling chromium-daily PPA from
/etc/apt/sources.list.d/chromium-daily-ppa-oneiric.list
Updating packages lists
Reading package lists… Done
Building dependency tree
Reading state information… Done
Selected version ‘14.0.835.202~r103287-0ubuntu1’ (Ubuntu:11.10/oneiric [amd64]) for 'chromium-browser’
Selected version ‘14.0.835.202~r103287-0ubuntu1’ (Ubuntu:11.10/oneiric [all]) for 'chromium-browser-l10n’
Selected version ‘14.0.835.202~r103287-0ubuntu1’ (Ubuntu:11.10/oneiric [amd64]) for 'chromium-codecs-ffmpeg’
The following packages will be DOWNGRADED:
chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg
0 upgraded, 0 newly installed, 3 downgraded, 0 to remove and 0 not upgraded.
Need to get 21.6 MB of archives.
After this operation, 6,496 kB of additional disk space will be used.
Do you want to continue [Y/n]?[/code]

a za kaj onda sluzi /etc/apt/sources.{list,dir} ?

Mislim… fino je to, ali koristiti konzolni alat za tu namjenu dovodi do loseg poznavanja sistema.

On the other side, ako je vec tu automatika, onda ima na onom gui halatu za aptitude upravljanje repoima.

[quote=Bo]a za kaj onda sluzi /etc/apt/sources.{list,dir} ?

Mislim… fino je to, ali koristiti konzolni alat za tu namjenu dovodi do loseg poznavanja sistema.

On the other side, ako je vec tu automatika, onda ima na onom gui halatu za aptitude upravljanje repoima.[/quote]
Ne vraca ti na verzije paketa sa osnovnih repozitorija. Ima i program sa frontendom za ovo, a zove se Ubuntu Tweak. U svakom slucaju zgodno pojednostavljenje procedure vracanja na repozitorijske verzije paketa.

[quote=Bo]a za kaj onda sluzi /etc/apt/sources.{list,dir} ?

Mislim… fino je to, ali koristiti konzolni alat za tu namjenu dovodi do loseg poznavanja sistema.

On the other side, ako je vec tu automatika, onda ima na onom gui halatu za aptitude upravljanje repoima.[/quote]
npr instalrao si neki libNEŠTA sa ppa reposa, ako ukineš ppa fajl iz source.list.d dira onda npr. kad hoćeš nešta da instaliraš neki paket kaže ti “this package depends on NEŠTO but not NEŠTO” i tako to

ovaj ppa-purge prije micanja reposa uradi downgrade na pa onaj paket libNEŠTA bude taman

bilo je nekad slične priče ovdje

http://forum.linux.org.ba/viewtopic.php?id=6140&p=2

evo spominjao se i neki gui
http://maketecheasier.com/search-manage-ppas-with-y-ppa-manager/2011/01/20

btw onaj tweak-next (oneiric) mi javi kad ukidam npr ovaj chromium repos da nema paketa za downgrade, dok preko terminala ima :slight_smile:

ATM ipak preporučujem ppa-purge :slight_smile:

mada i ppa-purge ima glup bug kad kažeš “no” samo nastavi ko da si kuco Y :smiley: zakomentariše repos url i downgradeuje se, šta ga briga :slight_smile:

After this operation, 6,496 kB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. The following packages will be DOWNGRADED: chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg 0 packages upgraded, 0 newly installed, 3 downgraded, 0 to remove and 38 not upgraded. Need to get 21.6 MB of archives. After unpacking 6,496 kB will be used.