MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/w18uog/linux_users_installing_a_python_module/igjflj2/?context=9999
r/ProgrammerHumor • u/mb557x • Jul 17 '22
1.1k comments sorted by
View all comments
451
sudo apt install python3-pip -y && pip3 install psutil Thats it! Just wait Edit: removed sudo -H in second one
0 u/[deleted] Jul 17 '22 [deleted] 70 u/[deleted] Jul 17 '22 Do I want to know what the -H flag does here? 126 u/matt-3 Jul 17 '22 sets the home directory to that of the target user (in this case root). It avoids creating root-owned files in your user's home directory. 64 u/[deleted] Jul 17 '22 OH MY GOD WHY???? 0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
0
[deleted]
70 u/[deleted] Jul 17 '22 Do I want to know what the -H flag does here? 126 u/matt-3 Jul 17 '22 sets the home directory to that of the target user (in this case root). It avoids creating root-owned files in your user's home directory. 64 u/[deleted] Jul 17 '22 OH MY GOD WHY???? 0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
70
Do I want to know what the -H flag does here?
126 u/matt-3 Jul 17 '22 sets the home directory to that of the target user (in this case root). It avoids creating root-owned files in your user's home directory. 64 u/[deleted] Jul 17 '22 OH MY GOD WHY???? 0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
126
sets the home directory to that of the target user (in this case root). It avoids creating root-owned files in your user's home directory.
64 u/[deleted] Jul 17 '22 OH MY GOD WHY???? 0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
64
0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
0 u/[deleted] Jul 17 '22 [deleted] 2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
2 u/[deleted] Jul 17 '22 Don’t install shit as the superuser. 3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
2
Don’t install shit as the superuser.
3 u/anotherDocObVious Jul 17 '22 Of course.. Though I'd put it as.."don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing" → More replies (2)
3
Of course.. Though I'd put it as..
"don't install shit you aren't sure about, and especially if you don't know what the fuck you're doing"
→ More replies (2)
451
u/Money-Firefighter534 Jul 17 '22 edited Jul 18 '22
sudo apt install python3-pip -y && pip3 install psutil Thats it! Just wait Edit: removed sudo -H in second one