Bug 4497 - urpmi: automatically add media if installing remote package
: urpmi: automatically add media if installing remote package
Status: VERIFIED FIXED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-10 12:12 MSD by Denis Silakov
Modified: 2014-10-21 19:43 MSD (History)
1 user (show)

See Also:
RPM Package: urpmi
ISO-related:
Bad POT generating:
Upstream:
firstlevel: qa_verified+
denis.silakov: published+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Silakov 2014-10-10 12:12:40 MSD
There is a request to improve urpmi a little when dealing with remote files - urpmi should not only download a file, but try to add remote media if possible. This would be useful when dealing with containers and personal repositories in ABF.

For example, if I want to install apache-mpm-prefork from build https://abf.io/build_lists/2290444, currently I have to manually add container as a media and then launch "urpmi apache-mpm-prefork". If I launch "urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/apache-mpm-prefork-2.4.10-2-rosa2014.1.i586.rpm", then I will get errors concerning unresolved dependencies, since this package depends on other packages from container.

The suggestion is to implement possibility to directly launch "urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/apache-mpm-prefork-2.4.10-2-rosa2014.1.i586.rpm". Urpmi should detect that this is a remote file and try to add a medium (using "http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/" as medium url) and only after this install apache-mpm-prefork-2.4.10-2-rosa2014.1.i586.rpm. When exiting, urpmi should remove the medium.
Comment 1 Denis Silakov 2014-10-10 12:15:39 MSD
Advisory:
Improved urpmi to automatically try to add medium when installing remote packages. This is the default behavior now; it can be overridden by means of "--no-auto-media" option in command line or "no-auto-media" parameter in global options in /etc/urpmi/urpmi.cfg

Build lists:
https://abf.io/build_lists/2290815
https://abf.io/build_lists/2290816

Note for testers:
Just launch "urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/apache-mpm-prefork-2.4.10-2-rosa2014.1.i586.rpm"

with old and new urpmi in a 32bit system.

For 64bit systems, you may try to install this package:

http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/apache-mpm-prefork-2.4.10-2-rosa2014.1.x86_64.rpm
Comment 2 FirstLevel 2014-10-21 17:30:40 MSD
With old urpmi:
32 bit:
[root@r432 ~]# urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/apache-mpm-
prefork-2.4.10-2-rosa2014.1.i586.rpm
Не удаётся установить запрошенный пакет:
apache-mpm-prefork-2.4.10-2-rosa2014.1.i586 (из-за неудовлетворённости apache-modules[== 2.4.10-2])
Продолжить установку? (Y/n) 

64 bit:
[root@r4null64 ~]# urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/apache-mpm-prefork-2.4.10-2-rosa2014.1.x86_64.rpm
Не удаётся установить запрошенный пакет:
apache-mpm-prefork-2.4.10-2-rosa2014.1.x86_64 (из-за неудовлетворённости apache-base[== 2.4.10-2])
Продолжить установку? (Y/n) 


With new urpmi I has successfully installed packages.
32 bit:
[root@r432 ~]# urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/apache-mpm-

prefork-2.4.10-2-rosa2014.1.i586.rpm
добавляется источник «medium_for_apache-mpm-prefork-2.4.10-2-rosa2014.1.i586.rpm»
    http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290444/i586/main/release/media_info/20141009-184647-
synthesis.hdlist.cz
Для удовлетворения зависимостей будут установлены следующие пакеты:                                            
 Пакет                          Версия       Релиз         Dist  DEpoch Платформа 
(источник «main»)
 libapr-util1_0                 1.5.3        7             rosa  2014.1 i586 
 libapr1_0                      1.5.1        4             rosa  2014.1 i586 
(источник «medium_for_apache-mpm-prefork-2.4.10-2-rosa2014.1.i586.rpm»)
 apache-base                    2.4.10       2             rosa  2014.1 i586 
 apache-mod_actions             2.4.10       2             rosa  2014.1 i586 
....

64 bit: 
[root@r4null64 ~]# urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/apache-mpm-prefork-2.4.10-2-rosa2014.1.x86_64.rpm
добавляется источник «medium_for_apache-mpm-prefork-2.4.10-2-rosa2014.1.x86_64.rpm»
    http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/media_info/20141009-184429-synthesis.hdlist.cz
    http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/media_info/20141009-184429-info.xml.lzma
    http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/media_info/20141009-184429-files.xml.lzma
    http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290445/x86_64/main/release/media_info/20141009-184429-changelog.xml.lzma
Для удовлетворения зависимостей будут установлены следующие пакеты:                                            
 Пакет                          Версия       Релиз         Dist  DEpoch Платформа 
(источник «main»)
 lib64apr-util1_0               1.5.3        7             rosa  2014.1 x86_64 
 lib64apr1_0                    1.5.1        4             rosa  2014.1 x86_64 
(источник «medium_for_apache-mpm-prefork-2.4.10-2-rosa2014.1.x86_64.rpm»)
 apache-base                    2.4.10       2             rosa  2014.1 x86_64 
....
Comment 3 FirstLevel 2014-10-21 17:32:49 MSD
urpmi-7.32.3-18
http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290815/i586/main/release/
http://abf-downloads.rosalinux.ru/rosa2014.1/container/2290816/x86_64/main/release/
************************ Advisory **********************
Improved urpmi to automatically try to add medium when installing remote packages. This is the default behavior now; it can be overridden by means of "--no-auto-media" option in command line or "no-auto-media" parameter in global options in /etc/urpmi/urpmi.cfg
********************************************************
QA Verified