Fedora 12 Update Error

Patrick O'Callaghan pocallaghan at gmail.com
Sun Apr 11 16:46:30 UTC 2010


On Sun, 2010-04-11 at 18:28 +0300, Aioanei Rares wrote:
> su - [enter password] && yum update yum\* PackageKit\*

Wrong. Executing su gets a new shell, which will not read the rest of
the line. On terminating that shell, the original shell will try to
execute the rest of the line and fail since it's not root.

The correct way is:

su -c "yum update yum\* PackageKit\*"

Of course there are other ways. This is just the closest to your
version.

poc



More information about the users mailing list