Manjaro Difference between revisions of "Downgrading packages/tr"

Difference between revisions of "Downgrading packages/tr"

From Manjaro
(Created page with "Paketlerin sürümünü düşürme")
 
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages/>
__TOC__
__TOC__
<div lang="en" dir="ltr" class="mw-content-ltr">
{{warning|Downgrading packages will almost always leave you in an unsupported partial upgrade state. These instructions are intended for advanced users who understand the consequences of downgrading packages}}
{{warning|Downgrading packages will almost always leave you in an unsupported partial upgrade state. These instructions are intended for advanced users who understand the consequences of downgrading packages}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
=Introduction=
=Introduction=
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
There are sometimes circumstances that require downgrading a package temporarily.  While this should not be an issue for Manjaro users on the stable branch, it is sometimes needed when using the unstable branch.
There are sometimes circumstances that require downgrading a package temporarily.  While this should not be an issue for Manjaro users on the stable branch, it is sometimes needed when using the unstable branch.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
=The easy way using Manjaro Downgrade=
=The easy way using Manjaro Downgrade=
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''manjaro-downgrade''' is an application that helps automate the process of locating and downgrading packages.
'''manjaro-downgrade''' is an application that helps automate the process of locating and downgrading packages.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Installing Manjaro Downgrade==
==Installing Manjaro Downgrade==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
First you need to install Manjaro Downgrade, which is available in the official repositories of Manjaro. This can be done with the following command:
First you need to install Manjaro Downgrade, which is available in the official repositories of Manjaro. This can be done with the following command:
</div>
pamac install manjaro-downgrade


pamac install manjaro-downgrade
<div lang="en" dir="ltr" class="mw-content-ltr">
 
 
==Using Manjaro Downgrade==
==Using Manjaro Downgrade==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
To use '''manjaro-downgrade''' simply run the command followed by the name of the package you want to downgrade.  For example:
To use '''manjaro-downgrade''' simply run the command followed by the name of the package you want to downgrade.  For example:
</div>
manjaro-downgrade firefox


manjaro-downgrade firefox
<div lang="en" dir="ltr" class="mw-content-ltr">
 
This will result in output which looks like this:
This will result in output which looks like this:
</div>


  Available packages:
  <div lang="en" dir="ltr" class="mw-content-ltr">
Available packages:
</div>
     1)  firefox    55.0.3  1  x86_64  (remote)
     1)  firefox    55.0.3  1  x86_64  (remote)
     2)  firefox    60.0.1  1  x86_64  (remote)
     2)  firefox    60.0.1  1  x86_64  (remote)
Line 45: Line 65:
  +  15)  firefox    66.0.5  1  x86_64  (remote)
  +  15)  firefox    66.0.5  1  x86_64  (remote)
  +  16)  firefox    66.0.5  1  x86_64  (local)
  +  16)  firefox    66.0.5  1  x86_64  (local)
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The entries listed as "local" are versions from your local package cache.  The entries identified as "remote" are available from the Arch Linux Archive(ALA).
The entries listed as "local" are versions from your local package cache.  The entries identified as "remote" are available from the Arch Linux Archive(ALA).
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{warning|Installing packages from the ALA is inherently dangerous as sometimes Manjaro needs custom versions of certain packages.  Doing this can result in a broken system.  As a result, downgrading from the ALA is disabled by default on the stable branch. If needed, you can enable it by setting the environment variable <pre>DOWNGRADE_FROM_ALA=1</pre>}}
{{warning|Installing packages from the ALA is inherently dangerous as sometimes Manjaro needs custom versions of certain packages.  Doing this can result in a broken system.  As a result, downgrading from the ALA is disabled by default on the stable branch. If needed, you can enable it by setting the environment variable <pre>DOWNGRADE_FROM_ALA=1</pre>}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Adding packages to the ignore list==
==Adding packages to the ignore list==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
After downgrading the package, you should see a message similar to this:
After downgrading the package, you should see a message similar to this:
  add firefox to IgnorePkg? [y/n]
  add firefox to IgnorePkg? [y/n]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
If you answer "y", the package will no long be upgraded in future updates until you manually remove it from the '''IgnorePkg''' line of '''/etc/pacman.conf'''
If you answer "y", the package will no long be upgraded in future updates until you manually remove it from the '''IgnorePkg''' line of '''/etc/pacman.conf'''
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
=Downgrading packages manually=
=Downgrading packages manually=
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The directory {{ic|/var/cache/pacman/pkg}} contains old versions of packages.  First look for the package that you wish to downgrade is this directory then use {{ic|pacman -U}} to install it.  For example, it could look like this:
The directory {{ic|/var/cache/pacman/pkg}} contains old versions of packages.  First look for the package that you wish to downgrade is this directory then use {{ic|pacman -U}} to install it.  For example, it could look like this:
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
We have to use the following command to install the previously installed version of the packages that need to be downgraded:
We have to use the following command to install the previously installed version of the packages that need to be downgraded:
</div>
sudo pacman -U /var/cache/pacman/pkg/firefox-64.0.2-1-x86_64.pkg.tar.xz


sudo pacman -U /var/cache/pacman/pkg/firefox-64.0.2-1-x86_64.pkg.tar.xz
<div lang="en" dir="ltr" class="mw-content-ltr">
 
 
==Ensuring downgraded packages won't be upgraded again==
==Ensuring downgraded packages won't be upgraded again==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
In order to stop these packages from being upgraded the next time you run updates, you can add them to the ignore list in '''/etc/pacman.conf'''.  Look for the section that looks like this:
In order to stop these packages from being upgraded the next time you run updates, you can add them to the ignore list in '''/etc/pacman.conf'''.  Look for the section that looks like this:
  # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
  # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
</div>
  # IgnorePkg =
  # IgnorePkg =


<div lang="en" dir="ltr" class="mw-content-ltr">
Remove the comment in front of '''IgnorePkg''' and add the package name to the list.  When you are done it should look like this:
Remove the comment in front of '''IgnorePkg''' and add the package name to the list.  When you are done it should look like this:
  # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
  # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
</div>
  IgnorePkg = firefox
  IgnorePkg = firefox


<div lang="en" dir="ltr" class="mw-content-ltr">
Once this is done the package will no long be upgraded in future updates until you manually remove it from the '''IgnorePkg''' line of '''/etc/pacman.conf'''
Once this is done the package will no long be upgraded in future updates until you manually remove it from the '''IgnorePkg''' line of '''/etc/pacman.conf'''
</div>


[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]
[[Category:Packages{{#translation:}}]]
[[Category:Packages{{#translation:}}]]

Latest revision as of 09:43, 21 October 2024

Other languages:
English • ‎Türkçe • ‎français • ‎русский
Warning
Downgrading packages will almost always leave you in an unsupported partial upgrade state. These instructions are intended for advanced users who understand the consequences of downgrading packages

Introduction

There are sometimes circumstances that require downgrading a package temporarily. While this should not be an issue for Manjaro users on the stable branch, it is sometimes needed when using the unstable branch.


The easy way using Manjaro Downgrade

manjaro-downgrade is an application that helps automate the process of locating and downgrading packages.


Installing Manjaro Downgrade

First you need to install Manjaro Downgrade, which is available in the official repositories of Manjaro. This can be done with the following command:

pamac install manjaro-downgrade

Using Manjaro Downgrade

To use manjaro-downgrade simply run the command followed by the name of the package you want to downgrade. For example:

manjaro-downgrade firefox

This will result in output which looks like this:

Available packages:

    1)  firefox    55.0.3  1  x86_64  (remote)
    2)  firefox    60.0.1  1  x86_64  (remote)
    3)  firefox    64.0.2  1  x86_64  (remote)
    4)  firefox    64.0.2  1  x86_64  (local)
    5)  firefox    65.0    1  x86_64  (remote)
    6)  firefox    65.0    2  x86_64  (remote)
    7)  firefox    65.0.1  1  x86_64  (remote)
    8)  firefox    65.0.2  1  x86_64  (remote)
-   9)  firefox    66.0    0  x86_64  (local)
   10)  firefox    66.0    1  x86_64  (remote)
   11)  firefox    66.0.1  1  x86_64  (remote)
   12)  firefox    66.0.2  1  x86_64  (remote)
   13)  firefox    66.0.3  1  x86_64  (remote)
   14)  firefox    66.0.4  1  x86_64  (remote)
+  15)  firefox    66.0.5  1  x86_64  (remote)
+  16)  firefox    66.0.5  1  x86_64  (local)

The entries listed as "local" are versions from your local package cache. The entries identified as "remote" are available from the Arch Linux Archive(ALA).

Warning
Installing packages from the ALA is inherently dangerous as sometimes Manjaro needs custom versions of certain packages. Doing this can result in a broken system. As a result, downgrading from the ALA is disabled by default on the stable branch. If needed, you can enable it by setting the environment variable
DOWNGRADE_FROM_ALA=1


Adding packages to the ignore list

After downgrading the package, you should see a message similar to this:

add firefox to IgnorePkg? [y/n]

If you answer "y", the package will no long be upgraded in future updates until you manually remove it from the IgnorePkg line of /etc/pacman.conf


Downgrading packages manually

The directory /var/cache/pacman/pkg contains old versions of packages. First look for the package that you wish to downgrade is this directory then use pacman -U to install it. For example, it could look like this:


We have to use the following command to install the previously installed version of the packages that need to be downgraded:

sudo pacman -U /var/cache/pacman/pkg/firefox-64.0.2-1-x86_64.pkg.tar.xz

Ensuring downgraded packages won't be upgraded again

In order to stop these packages from being upgraded the next time you run updates, you can add them to the ignore list in /etc/pacman.conf. Look for the section that looks like this:

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
# IgnorePkg =

Remove the comment in front of IgnorePkg and add the package name to the list. When you are done it should look like this:

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = firefox

Once this is done the package will no long be upgraded in future updates until you manually remove it from the IgnorePkg line of /etc/pacman.conf

Cookies help us deliver our services. By using our services, you agree to our use of cookies.