How do I get back packages after I excluded them?
Hello all,
I did set up a CentOS 6.2 machine and installed the PostgreSQL 8.4 from packages found in the CentOS 6.2 repos. Later, I decided to upgrade the PostgreSQL to version 9.1, so I googled for instructions how to do it. For this, the CentOS repo packages with postgre 8.4 have to be excluded before packages 'postgresql91' could be used. So following to tutorial found on web, I did this: - In the file '/etc/yum.repos.d/CentOS-Base.repo' into sections '[base]' and '[updates]' I did inserted this line: Code:
exclude=postgresql* Code:
[root@...]# wget http://yum.postgresql.org/9.1/redhat/rhel-6-i386/pgdg-centos91-9.1-4.noarch.rpm Now I decided to revert to Postgre 8.4. So I removed the postgresql91 packages smoothly: Code:
[root@...]# yum remove postgresql91.i686 postgresql91-contrib.i686 postgresql91-libs.i686 postgresql91-server.i686 Code:
[root@...]# yum list all --disableexcludes=all | grep -i '\(pg\|sql\)' Code:
[root@...]# yum clean all |
it looks like it cannot find packages. maybe you did not restore the old repo for 8.4, or you have mistyped something?
|
Done.
pan64: Thank you for reply.
I helped myself the same way as I got and installed the 9.1: - Downloaded the repo-package and installed it - Installed the actual postgreSQL 8.4 packages. Code:
# wget http://yum.postgresql.org/8.4/redhat/rhel-6-i386/pgdg-centos-8.4-3.noarch.rpm |
Quote:
if you would first search for package you would see the package name, then you would need to install it with exact name as found, to be successful. If you're installing like yum install postgresql then the package was not found, you need to use exact package name, like: yum install postgresql84 or yum install postgresql* to install it. |
lithos,
In CentOS 6.2 repos, the postgre packages do not have the version postfix. Now I am sitting at a fresh CentOS 6.2 setup and this is the output of 'yum list': Code:
[root@san ~]# yum list | grep postgre But it is better, what I have now, after downloading the repopackage directly from postgresql.org, because it refers to newer packages (8.4.11) than to which the default CentOS 6.2 repos refer (8.4.9). |
All times are GMT -5. The time now is 11:12 AM. |