Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 22884  / 2 Years ago, thu, october 6, 2022, 7:23:36

So I used wget to install winetricks instead of apt-get. I noticed when you install things via apt-get, you can just type the name (i.e. winetricks) in terminal and it'll run it, same with the dash. When I installed via wget, terminal tells me




winetricks is currently not installed. You can install it by
typing: sudo apt-get install winetricks.




What do you call it when a program is registered with the OS from apt-get so you can just open it easily from terminal/dash? How do you make it so other programs can be opened like that (like my winetricks that I installed from a wget command)?


More From » apt

 Answers
7

When you do something like:



wget -qO- http://example.com/path/to/script | sh


You're just running a remote script. This could install something or just run something. It can do pretty much anything because it's a script and scripting's what Ubuntu was built on.



When you use apt-get:



sudo apt-get install winetricks


You're installing it into /usr/bin for all users. The package you're installing is now coming from the Ubuntu repository which tends to mean somebody is looking after it and monitoring what code is going into it. Most people would consider a lot safer than running a random script off the internet.






Edit: In your case, you're just downloading a script - you're not running it inline like I was suggesting you might. What I've said still applies - you're just downloading it directly from whoever makes it but you're not installing it system-wide.



If you stick it in ~/bin/ (create that if it doesn't exist) your user will be able to call it from whatever path, otherwise you will need to prepend the path when you run it eg ~/Downloads/winetricks ...






Just to answer the question:




What do you call it when a program is registered with the OS from apt-get so you can just open it easily from terminal/dash?





  • Installing a package describes that.

  • There are scripts that could be downloaded and run (in one movement, like my first example) which would also be counted as installing, but it's not a managed package install.

  • If you're just downloading a script with wget, I'd have to call that "downloading".


[#31901] Saturday, October 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pantkie

Total Points: 209
Total Questions: 112
Total Answers: 138

Location: Venezuela
Member since Sat, Apr 24, 2021
3 Years ago
;