All you need do is to just save this as a script and call it in the bash terminal
#!/bin/bash
echo "";
echo "Only root can unlock the URPMI database.";
echo "Starting with the removal of URPMI locks:";
rm -f "/var/lib/urpmi/.LOCK";
echo " rm -f '/var/lib/urpmi/.LOCK'...";
rm -f "/var/lib/urpmi/.RPMLOCK";
echo " rm -f '/var/lib/urpmi/.RPMLOCK'..."
echo "URPMI DATABASE UNLOCKED!";
echo "Happy installing!"
echo ""
0 comments:
Post a Comment