![]() |
install pacman package without password - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: install pacman package without password (/thread-21271.html) |
install pacman package without password - DKRoots - Sep-22-2019 Hello, First, I am French, sorry for my English ![]() For my project, with TKinter, I need to install several packages with PACMAN, is there a command line to bypass the password ? for an example, here is a part my code : def InstallGedit(self, popup): popup.destroy() os.system('gnome-terminal -x sudo pacman -S gedit')When I hit the "install" button, it calls this function, open the terminal and sends the request of install of "GEDIT" package. I know it's not recommended but i will be the only one to use it, it's just for me. I know th e process for modify the /etc/sudoers with visudo but it's not that i want. I just want a command line. I know too that for allow install, we can write "yes | " before sudo pacman.... for automatically validate command. Thanks you all. RE: install pacman package without password - metulburr - Sep-22-2019 you can try the pexpect module to insert the password into the child process RE: install pacman package without password - DKRoots - Sep-22-2019 Oh thank you, i will try it :) |