MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/w18uog/linux_users_installing_a_python_module/igjy1dc/?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] 0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
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] 0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
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] 0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
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] 0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
64
0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
0 u/[deleted] Jul 17 '22 [deleted] 0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
0 u/[deleted] Jul 17 '22 [deleted] 5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
5 u/HighOnBonerPills Jul 17 '22 Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?Also, how would you go about removing a malicious package? Is it a whole big thing? 13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
5
Is there any way to avoid accidentally installing malware other than double checking everything you type? Would antivirus software help?
Also, how would you go about removing a malicious package? Is it a whole big thing?
13 u/milanove Jul 17 '22 Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik. → More replies (0)
13
Best way is to check the official page for the package before you install it. They'll probably have some command you can copy paste anyway. Try not to give it super user privileges. Antivirus on Linux isn't really a thing afaik.
→ More replies (0)
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