Bug 8478

Summary: When using "su -c "urpmi [package]"", it return "urpmi : no such command"
Product: Mageia Reporter: Fallstar <gdstroumph>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: Normal CC: mageia, thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Fallstar 2012-12-22 19:58:19 CET
Description of problem:

I have to log in as root in order to use urpmi : su -c "urpmi" returns "urpmi : no such command"
I didn't try with sudoers.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Open a terminal
2. Type su -c urpmi
Comment 1 Manuel Hiebel 2012-12-22 23:01:22 CET
indeed

CC: (none) => thierry.vignaud, tmb
Source RPM: util-linux => util-linux urpmi

Comment 2 Thierry Vignaud 2012-12-23 09:11:15 CET
RTFM (man su is your friend)
urpmi is not in user path, you need to run su -c /sbin/urpmi or su -l urpmi

Status: NEW => RESOLVED
Resolution: (none) => INVALID
Source RPM: util-linux urpmi => (none)

Comment 3 Fallstar 2012-12-23 11:11:56 CET
My bad, I should have read the manual.
But it's kinda confusing for noobies like me that urpmi is not in /bin, like it used to be on Mageia 1 and 2, why did you changed that ?
Comment 4 Sander Lepik 2012-12-23 11:15:15 CET
# which urpmi
/usr/sbin/urpmi

This is Mageia 2. AFAIK urpmi has never been in /bin.

CC: (none) => sander.lepik

Comment 5 Fallstar 2012-12-23 11:48:52 CET
(In reply to comment #4)
> # which urpmi
> /usr/sbin/urpmi
> 
> This is Mageia 2. AFAIK urpmi has never been in /bin.

Then I guess I fucked something up on both my computersâ¦
Nevermind, thank you all anyway.:)
Comment 6 Thierry Vignaud 2012-12-23 12:58:41 CET
Indeed it never was in /usr/bin