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)
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
“
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
4. Now We’ll Install The App.
Type
Type
Then
Then
原载如下链接:
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!!!!
相关文章推荐
- How to build & install GLFW 3 and use it in a Linux project
- How to install NVIDIA Drivers in Ubuntu Linux
- How to Install Python 2.7.13 on Ubuntu & LinuxMint
- windows 10中的ubuntu子系统安装桌面环境的方法(How to install Ubuntu-desktop in windows 10 Subsystem for Linux)
- How to install sublime text 3 in ubantu linux
- How to install oracle by Command Line Interface(CLI) in silent mode on Linux
- linux 机器之间 zssh, rz, sz互相传输 ( How to install zssh in Ubuntu 13.10 (Saucy))
- how to install putty in linux
- how to develop programs in linux(cs50 appliance)?
- How to programatically unplug & replug an USB device in linux?
- How to Install ATI/AMD Catalyst 13.4 Linux Driver in Ubuntu 10.04
- How to install and manage different versions of Python in Linux
- How to Install Python 3.5.2 on Ubuntu & Linuxmint
- How to install adobe flash player in Kali Linux
- How to install Mysql in linux server
- How to install Xvfb (X11 Server) in Linux Server
- How to install Iperf in Linux-Ubuntu
- 【转】How to Change File Ownership & Groups in Linux
- how to install mqtt in linux (Linux环境下安装mosquitto)
- How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux