I downloaded the
wget program from
http://ftp.gnu.org/gnu/wget/, and installed it using
./configure; make; sudo make install. It installed the program at
/usr/local/bin/wget. What determines where it installs the program at, and can the location of installation be changed?
wget is already provided by Ubuntu. You don't need to install it externally.
To answer your question, if you read the installation instructions, you will see that you can call the configure script like this:
The installation prefix is determined by the
If you would want to install it into /usr instead, you would do:
Which is not recommended, since only packages provided by Ubuntu should go there. /usr/local is for stuff you install outside of the package manager. If you install wget from the Ubuntu repository for example, it will be installed in /usr.