Shorter URLs to repositoriesAs I wrote not too long ago, I hacked a very small and simple but still useful trick to simplify and shorten URLs to openSUSE Build Service repositories. e.g.:
Even shorterThere is now an even shorter variant, using
(instead of the full fledged URL as above). Trivial? yes. Useful? I think so :) (e.g. to give links on IRC, or on identi.ca/twitter) For some examples, see
Beyond the short URLsNote that you may also expand beyond that URL to reach files/directories below those, e.g.:
11.2 is openSUSE_11.2As you surely have noted,
11.2isn't the correct subdirectory there (it's actually
openSUSE_11.2). Well, I also added the expansion of
11.3, etc... at that position in the URL to
openSUSE_11.0, etc... respectively (well, actually it's a regex ;)).
f is openSUSE_FactoryTo redirect to
openSUSE_Factoryinstead, just use
Short URLs to .repo filesAnd here I'm so lazy it's getting creepy. What we usually want to link to (typically to give people a repository to add) is the
http://downloads.opensuse.org/repositories/network:/utilities/openSUSE_11.2/network:utilities.repoSame for Factory, of course, e.g.
Add zypper to the mixNow, given all that, if you want to tell someone to add e.g. the
server:monitoringrepository, just tell her to do this:
zypper ar -r http://r.opensu.se/server:monitoring/11.2/r
The impossibleWhat would be even nicer is to avoid having to put the openSUSE version in the URL, but unfortunately
zypperdoesn't the version of the openSUSE it's running on in the HTTP request headers, which means I simply cannot automagically redirect to the right subdirectory based on that, as I don't have any way to know which openSUSE version the client has.