vmleft.blogg.se

Yum update postgresql to specific version
Yum update postgresql to specific version














First add the latest version to your rpm for install using yum. Right now postgres 9.6 is the latest version, but in the future you can follow the same steps replacing 96 or 9.6 with 97 or 9.7 etc.

#Yum update postgresql to specific version how to#

See my answer that covers it in more details here: How to download a file from repo, and install it later w/o internet connection?. Next remove all installs of postgres: sudo yum -y remove postgres Now Install PG latest version. Notice it's doing a dependency check, and then downloading the missing pieces.

yum update postgresql to specific version

Loaded plugins: langpacks, presto, refresh-packagekit What if I want to download everything that package X requires? $ yumdownloader -resolve Įxample $ yumdownloader -resolve vim-X11 $ yum -downloadonly Īnd then install it like so: $ sudo yum localinstall You can also use one of the following options to download a particular RPM from the web, and then use yum to install it. For example, below command will update all packages except kernel and php. You can specify multiple packages as per your requirement. $ sudo yum install yum-utils # (to get `repoquery`) Exclude Packages with Command You can simply use exclude command line parameter with yum to exclude specific packages from getting update. If you're ever unsure that you're constructing the arguments right you can consult with repoquery too. In this case since I'm dealing with Fedora 20 (F20) the release info would be "fc20", and the architecture info too. You can also include the release info when specifying a package. Loading mirror speeds from cached hostfileĪs far as installing a particular version? You can append the version info to the name of the package, removing the architecture name, like so: $ sudo yum install -įor example in this case if I wanted to install the older version, 2.4.6-6 I'd do the following: $ sudo yum install httpd-2.4.6-6 Loaded plugins: fastestmirror, langpacks, refresh-packagekit

yum update postgresql to specific version

It gives you a list like "package name.architecture version": $ yum -showduplicates list httpd | expand To see what particular versions are available to you via yum you can use the -showduplicates switch.














Yum update postgresql to specific version