The tool is under development now. You can take part in urpm-reposync testing.

usage: urpm-reposync.py [-h]
                        [--include-media INCLUDE_MEDIA [INCLUDE_MEDIA ...]]
                        [--exclude-media EXCLUDE_MEDIA [EXCLUDE_MEDIA ...]]
                        [-v] [-q] [-a] [-p] [-d] [-r] [-c] [-k]
                        [--runselftests] [--detailed]

reposync is used to synchronize a set of packages on the local computer with
the remote repository.

optional arguments:
  -h, --help            show this help message and exit
  --include-media INCLUDE_MEDIA [INCLUDE_MEDIA ...], --media INCLUDE_MEDIA [INCLUDE_MEDIA ...]
                        Use only selected URPM media
  --exclude-media EXCLUDE_MEDIA [EXCLUDE_MEDIA ...]
                        Do not use selected URPM media
  -v, --verbose         Verbose (print additional info)
  -q, --quiet           Quiet operation. Senseless without --auto.
  -a, --auto            Do not ask questions, just do it!
  -p, --printonly       Only print the list of actions to be done and do
                        nothing more!
  -d, --download        Only download the rpm files, but install or remove
                        nothing.
  -r, --remove          Remove all the packages which do not present in
                        repository. By default, only some of them would be
                        removed.
  -c, --check           Download packages and check wether the ycan be
                        installed to your system, but do not install them.
  -k, --nokernel        Do nothing with kernels.
  --runselftests        Run self-tests end exit.
  --detailed            Show detailed information about packages are going to
                        be removed or installed (why does it have to be done)

Contents

Help Reposync Testing

You need a virtual machine with some version of Mandriva or ROSA on-board. Do not forget to create a snapshot.

You can download the attachment and do the following:

1) Setup correct mirrors (you can try other repositories. It would be a great experience too):

sudo urpmi.addmedia --distrib http://mirror.yandex.ru/rosa/rosa2012lts/repository/i586

And in case of 64 bit system:

sudo urpmi.addmedia --distrib http://mirror.yandex.ru/rosa/rosa2012lts/repository/x86_64

(64bit system has some packages installed from i586, so you need i586 repository too)

2) install package pyhton-rpm (sudo urpmi python-rpm)

3) Now configure your media sources and enable all the media (maybe except contrib).

4) Download reposync from link below. sudo python urpm-reposync.py -av | tee /tmp/log_something-to-something

If some errors occurred, and send me the report (/tmp/log_something-to-something).

Please, report me about every problem and about every successful run.

If you have some feature requests - you are welcome, send it to me directly (anton.kirilenko@rosalab.ru)

New Features

For example, there can be a line like "U poppler 0.16.7-1(mdv2011.0) 0.16.7-2(rosa.lts2012.0) x86_64"

If there are libraries in your system which are not in repository, but the other architecture presents, reposync will warn you about it.

Planned Features

Known Bugs


The newest version can be found here here