您的位置:首页 > 运维架构 > Linux

How To Install Programs In Linux (.gz &.bz & RPM)

2011-10-02 22:44 330 查看
一直在使用ubuntu,只会使用 apt-get install 命令来安装package,今天学习了一下怎么在linux下本地安装package,这篇学习的文章是转载来的,

原载如下链接:
http://geekdomain.wordpress.com/2007/08/22/how-to-install-programs-in-linux-gz-bz-rpm/
Ok, Many first Time Linux Users Are very confused on how to actually install programs in Linux Distribution. Through This Post I hope to provide a Complete guide To on how to install .gz , .bz and RPM files in any Linux distribution.

Why Is It made This Way In Linux??

Most First TIme Users Think That Linux is “Not That Good” becuase it doesnt just have pre compiled Installation setup files. But This is far from reality you see, Linux is about freedom of choice, so even in installing programs we can customize the program
before we actually use it. And also because of this method of compiing installation files on your local computer, it makes almost any program able to run on any Distribution of Linux.

HOW TO INSTALL :

1. Start Bash (The Shell) and navigate your way to your installation file’s folder. Then type: ( Here pkg is the name of the package)

"tar xvzf pkg.tar.gz" ( If File Is a GZ)
"tar xvjf pkg.tar.bz2"
 ( If Files is a BZ)


After this command a New Folder Would Be Created in the Same Location with the Package Name.

2.Next Move Into The Newly Created Folder.

Use
 "ls"
command to look for the folder Then Type
cd pkg"(Enter) ( Here pkg is the Name of the Newly Created Folder )


3. Next Go Into Super User Mode. Super User Mode in Linux is Like Having temparary Admin Priviledges just to install programs and perform other complex tasks.

Type
"su" 
(Enter) 

Then Type in Your ROOT password when prompted

4. Now We’ll Install The App.

Type
 "./configure" (Enter)


Type
"make" (Enter) 
Then 
"make install" (Enter)


Then
"make clean" (Enter)


Then
"exit" (Enter)


Now Your Done!!!!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: