Discussion:
[users] How do I exclude subversion-1.7.X from rpmforge repo?
Alfred von Campe
2012-02-09 21:31:40 UTC
Permalink
We are running CentOS 6.X and the latest "yum update" installed subversion 1.7.1 (and git-svn-1.7.1, etc.), but we are not quite ready for Subversion 1.7 yet. What is the magic incantation (either on the yum command line or in the /etc/yum.repos.d/rpmforge.repo file) to prevent installation of any 1.7.X releases of Subversion but allow installation of 1.6.X releases? I've tried a few options to no avail.

Thanks,
Alfred
Ljubomir Ljubojevic
2012-02-09 23:39:30 UTC
Permalink
Post by Alfred von Campe
We are running CentOS 6.X and the latest "yum update" installed subversion 1.7.1 (and git-svn-1.7.1, etc.), but we are not quite ready for Subversion 1.7 yet. What is the magic incantation (either on the yum command line or in the /etc/yum.repos.d/rpmforge.repo file) to prevent installation of any 1.7.X releases of Subversion but allow installation of 1.6.X releases? I've tried a few options to no avail.
You need to use priorities plugin (keep base repos safe from repoforge),

or to add
exclude=subversion*
to Repoforge yum repository config (/etc/yum.repos.d/rpmforge.repo)
--
Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
Alfred von Campe
2012-02-10 04:12:39 UTC
Permalink
Post by Ljubomir Ljubojevic
You need to use priorities plugin (keep base repos safe from repoforge),
or to add
exclude=subversion*
to Repoforge yum repository config (/etc/yum.repos.d/rpmforge.repo)
The problem is that I do want Subversion from the rpmforge repo; just not version 1.7.X. The previous version in the rpmforge repo was 1.6.15 which is what I want.

I guess I could live with Subversion 1.6.11 from the CentOS base repo...

Alfred
Nico Kadel-Garcia
2012-02-10 06:08:29 UTC
Permalink
Post by Ljubomir Ljubojevic
You need to use priorities plugin (keep base repos safe from repoforge),
or to add
exclude=subversion*
to Repoforge yum repository config (/etc/yum.repos.d/rpmforge.repo)
The problem is that I do want Subversion from the rpmforge repo; just not version 1.7.X. ?The previous version in the rpmforge repo was 1.6.15 which is what I want.
I guess I could live with Subversion 1.6.11 from the CentOS base repo...
Alfred
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?

You'll also want to exclude subversion-devel, mod_dav_svn,
subversion-libs, subversion-libs,subversion-javahi, etc.
Alfred von Campe
2012-02-10 18:53:43 UTC
Permalink
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work. It excluded all subversion packages from the rpmforge repo. I tried it in /etc/yum.conf and /etc/yum.repos.d/rpmforge.conf.

I've looked through the man pages and haven't found anything that mentions excluding a package based on its version number. If anyone has any working examples (on CentOS 6), I'd love to see them.

Alfred
Dee Holtsclaw
2012-02-10 20:31:55 UTC
Permalink
Post by Alfred von Campe
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work. It
excluded all subversion packages from the rpmforge repo. I tried it in
/etc/yum.conf and /etc/yum.repos.d/rpmforge.conf.
I've looked through the man pages and haven't found anything that mentions
excluding a package based on its version number. If anyone has any working
examples (on CentOS 6), I'd love to see them.
Have you tried the "versionlock" yum plugin? It's in the CentOS base
repository for 5.x (yum-versionlock).

http://yum.baseurl.org/wiki/Faq
<SNIP>
Nico Kadel-Garcia
2012-02-10 21:45:54 UTC
Permalink
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work. ?It excluded all subversion packages from the rpmforge repo. ?I tried it in /etc/yum.conf and /etc/yum.repos.d/rpmforge.conf.
The manpage is a bit obscure about the syntax. Try this in /etc/yum.conf

exclude=subversion-1.7.* subversion-*-1.7.* mod_dav_svn-1.7.*
I've looked through the man pages and haven't found anything that mentions excluding a package based on its version number. ?If anyone has any working examples (on CentOS 6), I'd love to see them.
Alfred
_______________________________________________
users mailing list
users at lists.repoforge.org
http://lists.repoforge.org/mailman/listinfo/users
William J. Horka
2012-02-10 21:57:05 UTC
Permalink
Post by Alfred von Campe
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work.
I've been using shell globs on the filename.

For a finite subset of "subversion >= 1.7", you could use:

exclude = subversion-1.7* subversion-1.8* subversion-1.9*
subversion-1.??.* subversion-1.???.* subversion-2*


Or if you wanted to be more precise, you could:
- edit /etc/yum.repos.d/rpmforge.repo to exclude "subversion" from
[rpmforge] entirely
- manually duplicate the [rpmforge] section and name it
[rpmforge-subversion]
- add to this new [rpmforge-subversion] repo:
includepkgs = subversion-1.6.*

Regards,
-Bill
--
William Horka
UNIX Systems Administrator
Harvard-MIT Data Center
Nico Kadel-Garcia
2012-02-11 05:01:33 UTC
Permalink
On Fri, Feb 10, 2012 at 4:57 PM, William J. Horka
Post by William J. Horka
Post by Alfred von Campe
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work.
I've been using shell globs on the filename.
exclude = subversion-1.7* ?subversion-1.8* subversion-1.9*
subversion-1.??.* subversion-1.???.* subversion-2*
Don't forget 'mod_dav_svn', which is built from the Subversion source and SRPM.
Nico Kadel-Garcia
2012-02-11 05:01:33 UTC
Permalink
On Fri, Feb 10, 2012 at 4:57 PM, William J. Horka
Post by William J. Horka
Post by Alfred von Campe
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work.
I've been using shell globs on the filename.
exclude = subversion-1.7* ?subversion-1.8* subversion-1.9*
subversion-1.??.* subversion-1.???.* subversion-2*
Don't forget 'mod_dav_svn', which is built from the Subversion source and SRPM.
Dee Holtsclaw
2012-02-10 20:31:55 UTC
Permalink
Post by Alfred von Campe
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work. It
excluded all subversion packages from the rpmforge repo. I tried it in
/etc/yum.conf and /etc/yum.repos.d/rpmforge.conf.
I've looked through the man pages and haven't found anything that mentions
excluding a package based on its version number. If anyone has any working
examples (on CentOS 6), I'd love to see them.
Have you tried the "versionlock" yum plugin? It's in the CentOS base
repository for 5.x (yum-versionlock).

http://yum.baseurl.org/wiki/Faq
<SNIP>
Nico Kadel-Garcia
2012-02-10 21:45:54 UTC
Permalink
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work. ?It excluded all subversion packages from the rpmforge repo. ?I tried it in /etc/yum.conf and /etc/yum.repos.d/rpmforge.conf.
The manpage is a bit obscure about the syntax. Try this in /etc/yum.conf

exclude=subversion-1.7.* subversion-*-1.7.* mod_dav_svn-1.7.*
I've looked through the man pages and haven't found anything that mentions excluding a package based on its version number. ?If anyone has any working examples (on CentOS 6), I'd love to see them.
Alfred
_______________________________________________
users mailing list
users at lists.repoforge.org
http://lists.repoforge.org/mailman/listinfo/users
William J. Horka
2012-02-10 21:57:05 UTC
Permalink
Post by Alfred von Campe
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work.
I've been using shell globs on the filename.

For a finite subset of "subversion >= 1.7", you could use:

exclude = subversion-1.7* subversion-1.8* subversion-1.9*
subversion-1.??.* subversion-1.???.* subversion-2*


Or if you wanted to be more precise, you could:
- edit /etc/yum.repos.d/rpmforge.repo to exclude "subversion" from
[rpmforge] entirely
- manually duplicate the [rpmforge] section and name it
[rpmforge-subversion]
- add to this new [rpmforge-subversion] repo:
includepkgs = subversion-1.6.*

Regards,
-Bill
--
William Horka
UNIX Systems Administrator
Harvard-MIT Data Center
Alfred von Campe
2012-02-10 18:53:43 UTC
Permalink
Post by Nico Kadel-Garcia
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?
That sounds like what I need, but I couldn't get that syntax to work. It excluded all subversion packages from the rpmforge repo. I tried it in /etc/yum.conf and /etc/yum.repos.d/rpmforge.conf.

I've looked through the man pages and haven't found anything that mentions excluding a package based on its version number. If anyone has any working examples (on CentOS 6), I'd love to see them.

Alfred
Nico Kadel-Garcia
2012-02-10 06:08:29 UTC
Permalink
Post by Ljubomir Ljubojevic
You need to use priorities plugin (keep base repos safe from repoforge),
or to add
exclude=subversion*
to Repoforge yum repository config (/etc/yum.repos.d/rpmforge.repo)
The problem is that I do want Subversion from the rpmforge repo; just not version 1.7.X. ?The previous version in the rpmforge repo was 1.6.15 which is what I want.
I guess I could live with Subversion 1.6.11 from the CentOS base repo...
Alfred
Won't an "exclude subversion >= 1.7" in your /etc/yum..conf do what you want?

You'll also want to exclude subversion-devel, mod_dav_svn,
subversion-libs, subversion-libs,subversion-javahi, etc.
Alfred von Campe
2012-02-10 04:12:39 UTC
Permalink
Post by Ljubomir Ljubojevic
You need to use priorities plugin (keep base repos safe from repoforge),
or to add
exclude=subversion*
to Repoforge yum repository config (/etc/yum.repos.d/rpmforge.repo)
The problem is that I do want Subversion from the rpmforge repo; just not version 1.7.X. The previous version in the rpmforge repo was 1.6.15 which is what I want.

I guess I could live with Subversion 1.6.11 from the CentOS base repo...

Alfred
Christopher Meng
2012-02-09 23:44:32 UTC
Permalink
Why dont you use this version?The only way you want to use 1.6 is to
download the source code them install manually
--
Best Regards,
Christopher Meng------'Cicku'

Ambassador of Fedora Project and Maintainer of CentOS wiki.

Website:http://cicku.me Hope you can visit and leave some comments.

More Contact info see here:http://about.me/cicku
Alfred von Campe
2012-02-09 21:31:40 UTC
Permalink
We are running CentOS 6.X and the latest "yum update" installed subversion 1.7.1 (and git-svn-1.7.1, etc.), but we are not quite ready for Subversion 1.7 yet. What is the magic incantation (either on the yum command line or in the /etc/yum.repos.d/rpmforge.repo file) to prevent installation of any 1.7.X releases of Subversion but allow installation of 1.6.X releases? I've tried a few options to no avail.

Thanks,
Alfred
Ljubomir Ljubojevic
2012-02-09 23:39:30 UTC
Permalink
Post by Alfred von Campe
We are running CentOS 6.X and the latest "yum update" installed subversion 1.7.1 (and git-svn-1.7.1, etc.), but we are not quite ready for Subversion 1.7 yet. What is the magic incantation (either on the yum command line or in the /etc/yum.repos.d/rpmforge.repo file) to prevent installation of any 1.7.X releases of Subversion but allow installation of 1.6.X releases? I've tried a few options to no avail.
You need to use priorities plugin (keep base repos safe from repoforge),

or to add
exclude=subversion*
to Repoforge yum repository config (/etc/yum.repos.d/rpmforge.repo)
--
Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
Christopher Meng
2012-02-09 23:44:32 UTC
Permalink
Why dont you use this version?The only way you want to use 1.6 is to
download the source code them install manually
--
Best Regards,
Christopher Meng------'Cicku'

Ambassador of Fedora Project and Maintainer of CentOS wiki.

Website:http://cicku.me Hope you can visit and leave some comments.

More Contact info see here:http://about.me/cicku
Loading...