Cara Downgrade Aplikasi dengan YUM

Cara Downgrade Aplikasi dengan YUM

LinuxArtikel kali ini saya akan membahas bagaimana cara downgrade aplikasi dengan YUM. Trik ini berguna kalau sewaktu-waktu kita butuh untuk melakukan downgrade package / aplikasi tertentu di Fedora, CentOS, atau Redhat.

Ok sekarang kita mulai aja deh ya dengan langkah-langkahnya

1. YUM Downgrade Basic

ini adalah perintah dasar untuk melakukan downgrade aplikasi dengan YUM

yum downgrade package

contohnya kaya begini

yum downgrade hunspell-mr.noarch
 
Setting up Downgrade Process
Resolving Dependencies
--> Running transaction check
---> Package hunspell-mr.noarch 0:20060920-5.fc13 set to be downgraded
---> Package hunspell-mr.noarch 0:20060920-6.fc14 set to be erased
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
 Package            Arch          Version                   Repository     Size
================================================================================
Downgrading:
 hunspell-mr        noarch        20060920-5.fc13           fedora         62 k
 
Transaction Summary
================================================================================
Downgrade     1 Package(s)
 
Total download size: 62 k
Is this ok [y/N]: y
Downloading Packages:
hunspell-mr-20060920-5.fc13.noarch.rpm                   |  62 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : hunspell-mr-20060920-5.fc13.noarch                       1/2 
  Cleanup        : hunspell-mr-20060920-6.fc14.noarch                       2/2 
 
Removed:
  hunspell-mr.noarch 0:20060920-6.fc14                                          
 
Installed:
  hunspell-mr.noarch 0:20060920-5.fc13                                          
 
Complete!

2. YUM Downgrade dengan Depedensi Aplikasi

Tentunya lebih sulit untuk melakukan downgrade jika aplikasi yang dituju memiliki depedensi, ini karena YUM tersebut hanya melakukan downgrade pada aplikasi intinya, tidak dengan library / depedensinya. Jadi kita harus melakukan downgrade library-nya secara manual. Misalkan perintahnya kaya begini

yum downgrade lib1 lib2 package

OK, sekarang kita langsung aja ke contohnya. Pertama kita harus mengecek apa aplikasi yang akan kita downgrade memilik depedensi atau tidak.

yum downgrade sqlite
 
Setting up Downgrade Process
Resolving Dependencies
--> Running transaction check
---> Package sqlite.i686 0:3.6.22-1.fc13 set to be downgraded
---> Package sqlite.i686 0:3.6.23-1.fc14 set to be erased
--> Finished Dependency Resolution
Error: Package: sqlite-devel-3.6.23-1.fc14.i686 (@rawhide/12)
           Requires: sqlite = 3.6.23-1.fc14
           Removing: sqlite-3.6.23-1.fc14.i686 (@rawhide/12)
               sqlite = 3.6.23-1.fc14
           Downgraded By: sqlite-3.6.22-1.fc13.i686 (fedora)
               sqlite = 3.6.22-1.fc13
 You could try using --skip-broken to work around the problem

Nah! dari contoh diatas, sqlite mempunyai depedensi dengan sqlite-devel  jadi dua-duanya harus di downgrade.

yum downgrade sqlite-devel sqlite
 
Setting up Downgrade Process
Resolving Dependencies
--> Running transaction check
---> Package sqlite.i686 0:3.6.22-1.fc13 set to be downgraded
---> Package sqlite.i686 0:3.6.23-1.fc14 set to be erased
---> Package sqlite-devel.i686 0:3.6.22-1.fc13 set to be downgraded
---> Package sqlite-devel.i686 0:3.6.23-1.fc14 set to be erased
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
 Package              Arch         Version                 Repository      Size
================================================================================
Downgrading:
 sqlite               i686         3.6.22-1.fc13           fedora         309 k
 sqlite-devel         i686         3.6.22-1.fc13           fedora          80 k
 
Transaction Summary
================================================================================
Downgrade     2 Package(s)
 
Total download size: 389 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): sqlite-3.6.22-1.fc13.i686.rpm                     | 309 kB     00:00     
(2/2): sqlite-devel-3.6.22-1.fc13.i686.rpm               |  80 kB     00:00     
--------------------------------------------------------------------------------
Total                                           438 kB/s | 389 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : sqlite-3.6.22-1.fc13.i686                                1/4 
  Installing     : sqlite-devel-3.6.22-1.fc13.i686                          2/4 
  Cleanup        : sqlite-devel-3.6.23-1.fc14.i686                          3/4 
  Cleanup        : sqlite-3.6.23-1.fc14.i686                                4/4 
 
Removed:
  sqlite.i686 0:3.6.23-1.fc14         sqlite-devel.i686 0:3.6.23-1.fc14        
 
Installed:
  sqlite.i686 0:3.6.22-1.fc13         sqlite-devel.i686 0:3.6.22-1.fc13        
 
Complete!

Selesai dech! mudah khan? silahkan dicoba dan semoga bermanfaat 😀

 

Tinggalkan komentar