LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I install a program from a shell, and how do I update parts of Linux? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-install-a-program-from-a-shell-and-how-do-i-update-parts-of-linux-414036/)

banjzooie 02-10-2006 11:24 PM

How do I install a program from a shell, and how do I update parts of Linux?
 
Hello. I am a major Linux newbie who's just installed Slackware as a third OS on my computer(first OS is MS-DOS 7.1, second OS is Windows XP). One of the first programs I want to install is FreePascal (aka FPK Pascal). The installer is a shell-based installer. I assumed that the Linux console was just like DOS and all I needed to do was CD to the installer's directory and then type the name of the installer, "Install.sh". But doing this gives me an error about "no such command" or something of the like. How do I run this installer? Does it make a difference whether I do it from the root prompt or from a shell prompt in KDE? I am using KDE 3.4, as that is what came with Slax.

That brings up my next question: How do I update the Linux Kernel and KDE? I do not have access to the internet while in Slackware because my router (2wire) is not compatible. Can I download the update from Windows and then install it from Slackware?

sipsipi 02-10-2006 11:46 PM

First: in order to run .sh files, do this:

prompt# ./Install.sh
or
prompt# sh Install.sh

second

Uhm... how can your router not be compat with machine? it's all TCP man.

perfect_circle 02-10-2006 11:53 PM

what you need to do after cd-ing in the directory is run:
Code:

sh install.sh
, or may
Code:

./install
if the file has execute permitions.

You should read this:
http://www.linuxcommand.org/
http://www.slackbook.org/html/index.html

Quote:

Does it make a difference whether I do it from the root prompt or from a shell prompt in KDE?
No as long as in both terminals you have root permitions.

Quote:

Can I download the update from Windows and then install it from Slackware?
Yes, but unlike dos, most stuff in linux are in source. So there are three different aproaches:
1.you dowload the source, compile it and install it, read here:http://www.linuxquestions.org/linux/...ms_from_Source

2. You download a precopiled package, packed for slackware (that's better and easier. You only need the installpkg command):www.linuxpackages.net
for more info type this:
Code:

man installpkg
Code:

man pkgtool
Code:

man removepkg
Code:

man upgradepkg
3.Compile the package by yourself and pack it yourself (that the hardest and best)

If I were you I wouldn't install a new kernel or update KDE until I've learned the basics.

banjzooie 02-11-2006 09:48 AM

Thanks for the help and advice guys. :)


All times are GMT -5. The time now is 05:58 PM.