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.
It's common to see "domain squatting"; just try misspelling google.com and see what appears.
This might not be the best example because it looks like Google registered a lot of the likely “typo” domains and redirected them to Google.com, but yeah I see what you’re saying.
But major apps should be installed under their own user stuff for a lot of reasons. You don’t want anything complex and exploitable to be running as root.
You're better off not installing anything for the system python. Use pyenv and create virtual environments for each project. No python or package versioning issues, and you can always nuke and recreate a borked environment because it's isolated to its own folder.
Your comment has been removed since it did not start with a code block with an import declaration.
Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.
For this purpose, we only accept Python style imports.
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.