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)?

closed as not constructive by Thomas Ward, Alvar, Mateo, Kevin Bowen, Amith KK Apr 4 '13 at 3:15

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    How did you "install" anything using wget? wget's a downloader, not a package installer... – Thomas Ward Apr 4 '13 at 0:16
  • Sorry I guess I downloaded winetricks with: wget kegel.com/wine/winetricks Guess I didnt actually "install" it. But if I downloaded an installer for eclipse or something from their website, installed it, would it be the same as apt-get install? – Jarryd Goodman Apr 4 '13 at 0:21

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".

When you use apt-get, you install the version in ubuntu repo. When you download an installer and use it, you install the version defined by the installer usually (can be the same as the repo or not).

Not the answer you're looking for? Browse other questions tagged or ask your own question.