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

一直在使用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!!!!



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值