Skip to content
README.rst 3.64 KiB
Newer Older
Seblu's avatar
Seblu committed
===========
ArchVersion
===========

Seblu's avatar
Seblu committed
INTRODUCTION
============
Seblu's avatar
Seblu committed
*archversion* is a tool used to compare upstream and downstream versions of archlinux packages.
Seblu's avatar
Seblu committed
Downstream packages version can be found in:
- the *Archlinux* web site [#]_;
- the *Archlinux* User Repository [#]_;
- a local pacman databases;
Seblu's avatar
Seblu committed
- a local abs sync.
Seblu's avatar
Seblu committed
You can also use it to update a PKGBUILD to the upstream version.

It targets Devs and TUs to help them to stay informed of new release of their packages.
It can also be used by AUR maintainers to track update for their packages.

Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
HOW TO USE IT
=============
Seblu's avatar
Seblu committed
The first thing to do is to define a list of packages to track by creating a file
Seblu's avatar
Seblu committed
~/.config/archversion/packages.conf. The file content looks like an old fashioned INI file.
Seblu's avatar
Seblu committed

The following example allow to check the last version of acpid against archlinux
Seblu's avatar
Seblu committed
official repositories
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
|  [acpid]
|  url = http://sourceforge.net/projects/acpid2/files/

You can find more complete examples in the misc/ directory.
Seblu's avatar
Seblu committed

Basically, you can run:
Seblu's avatar
Seblu committed
*archversion sync* to fetch last versions from upstream and downstream.
Seblu's avatar
Seblu committed
*archversion report --new* to display new verions.
*archversion report --sync acpid* to sync and display version report of the acpid package.
Seblu's avatar
Seblu committed
*archversion update* to update the current PKGBUILD to the last upstream version.
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
You can use systemd timers to get a report of packages which need updates:
$ systemctl enable archversion.timer
$ systemctl start archversion.timer
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
To update a PKGBUILD to the last upstream version, run:
$ archversion update
Seblu's avatar
Seblu committed

HOW IT WORKS
============
As simple as possible! *archversion* retrieve the content of the provided upstream
webpage and search for well-known pattern. And then compare it to the reference.
Seblu's avatar
Seblu committed
DOWNSTREAM MODES
================

pacman
------
This mode compare a remote upstream version against a local package version from
pacman databases.
This software is not responsible of syncing pacman databases. Please do it yourself.
This mode is recommended.

archweb
-------
This mode compare a remote upstream version against a remote package version
on *www.archlinux.org*.
Getting version is done using the json ouput of packages pages.
Unfortunatly, Archweb doesn't offer a RPC, so find the right URL for a package
need a lot of call. As a consequency it's slow and load the archlinux servers.
So, I recommend to avoid using this mode in favour of pacman mode!

aur
---
This mode compare a remomte upstream version against a remote package version
from the *Archlinux User Repository*.
AUR provides a JSON-RPC which allow to easily query about packages.

abs
---
This mode compare a remote upstream version against a local package version from
a synced ABS filesystem tree.
This is not responsible of syncing ABS tree. Please do it yourself.
This is **DANGEROUS** because PKGBUILD are *partially* executed to guess the package version!
So, prefer pacman mode!

none
----
This mode is a fake one, it only retrieves upstream version without any comparaison.
Seblu's avatar
Seblu committed


DEPENDENCIES
============
Seblu's avatar
Seblu committed
- Python 3.x [#]_
- PyXDG [#]_
Seblu's avatar
Seblu committed
- PyALPM [#]_
Seblu's avatar
Seblu committed


SOURCES
=======
*archversion* sources are available on github [#]_.

Seblu's avatar
Seblu committed
Once you get the git tree, you can build a test package:

|  ./bootstrap
|  ./configure
|  make pkg
Seblu's avatar
Seblu committed

LICENSE
=======
*archversion* is licensied under the term of GPL v2 [#]_.


AUTHOR
======
*archversion* was started by Sébastien Luttringer in July 2012.


LINKS
=====
.. [#] http://www.archlinux.org/
.. [#] http://aur.archlinux.org/
.. [#] http://python.org/download/releases/
.. [#] http://freedesktop.org/wiki/Software/pyxdg
Seblu's avatar
Seblu committed
.. [#] https://projects.archlinux.org/users/remy/pyalpm.git
Seblu's avatar
Seblu committed
.. [#] https://github.com/seblu/archversion/
.. [#] http://www.gnu.org/licenses/gpl-2.0.html