Forum Discussion

AdarshPanasri's avatar
2 years ago

Root user access in synapse notebooks

Hello Everyone, I am trying to install LibreOffice in fabric, I am using the below commands to downlad and extract the tar files.

 

wget https://download.documentfoundation.org/libreoffice/stable/24.2.5/rpm/x86_64/LibreOffice_24.2.5_Linux_x86-64_rpm_sdk.tar.gz
tar xzvf LibreOffice_24.2.5_Linux_x86-64_rpm_sdk.tar.gz.1
cd LibreOffice_24.2.5.2_Linux_x86-64_rpm_sdk/RPMS

 

But I am not able to install it, it seems I need to provide password to install the package, I used the below but still getting errors.

 
echo <password> | sudo -S yum install ./LibreOffice_24.2.5_Linux_x86-64_rpm_sdk.tar.gz

AND

echo '#!/bin/bash' > /tmp/askpass.sh
echo 'echo "<PASSWORD>"' >> /tmp/askpass.sh
chmod +x /tmp/askpass.sh
export SUDO_ASKPASS=/tmp/askpass.sh
sudo -A dnf install ./LibreOffice_7.6.4_Linux_x86-64_rpm.tar.gz
 

 

Has someone tried this ?

7 Replies