第2代Linux作業系統在安裝軟體方面相當簡單:第一步,搜尋你要的軟體,例如你要找一個遊戲軟體,它的名稱叫myward,這個遊戲軟體的說明是:myown war game。 Linux作業系統搜尋這個軟體包就只需要輸入指令apt-cache searchmyward,或是輸入軟體名稱的一部分apt-cache searchwar,或是你不知道軟體名稱。
下面有一張圖可以清楚地表示linux軟體應用的架構關係:
在Linux啟動的時候。首先會啟動核心(kernel),核心是一段電腦程序,這個程式直接管理管理硬件,包括CPU、記憶體空間、硬碟介面、網路介面等等。所有的電腦操作都要透過核心傳遞給硬體。我們可以看到,Linux利用kernel實現軟硬體的對話。透過系統呼叫的這個重要的接口,Linux將上層的應用與下層的kernel完全分離開,為程式設計師隱藏了底層的複雜性(相應的,也提高了上層應用的可移植性)。當我們在升級kernel的時候,也可以保持系統呼叫的語句不變,讓上層應用不感受到下層的改變。函式庫函數利用系統呼叫創造出模組化的功能,而shell則提供了一個使用者介面,並讓我們可以利用shell的語法編寫腳本,以整合程式。有了這些思想我們可以快速地了解linux的軟體應用的安裝和工作原理,也因此為了方便和獲取更多企業應用我們需要在linux系統上開發並且通過源碼編譯的方式製作各種軟體包從而為信息化時代服務。
特別值得一提的是Linux作業系統有很多值得學習的地方,這裡我們主要介紹Linux作業系統,包括介紹Linux作業系統等面向。 Linux作業系統軟體安裝方法總結
一、rpm包安裝方式步驟:
引用:
1、找到對應的軟體包,例如soft.version.rpm,下載到本機某個目錄;
2、開啟一個終端,su -成root用戶;
3、cd soft.version.rpm所在的目錄;
4、輸入rpm -ivh soft.version.rpm
二、deb包安裝方式步驟:
引用:
1.找到對應的軟體包,如soft.version.deb,下載到本機某目錄;
2、開啟一個終端,su -成root使用者;
3、cd soft.version.deb所在的目錄;
4.輸入dpkg -i soft.version.deb
三、tar.gz原始碼包安裝方式:
引用:
1、找到對應的軟體包,如soft.tar.gz,下載到本機某個目錄;
2、開啟一個終端,su -成root使用者;
3、cd soft.tar.gz所在的目錄;
4、tar -xzvf soft.tar.gz //一般會產生一個soft目錄
5 、cd soft
6、./configure
7、make
8、make install
四、tar.bz2原始碼包安裝方式:
引用:
1、找到對應的軟體包,如soft.tar. bz2,下載到本機某目錄;
2、開啟一個終端,su -成root使用者;
3、cd soft.tar.bz2所在的目錄;
4、tar -xjvf soft.tar.bz2 //一般會產生一個soft目錄
5、cd soft
6、./configure
7、make
8、make install
五、apt方式安裝:
引用:
1、開啟一個終端,方式安裝:
引用:
1、開啟一個終端,分別為使用者;
2、apt-cache search soft附註:soft是你要找的軟體的名稱或相關資訊3、如果2中找到了軟體soft.version,則用apt-get installsoft.version指令安裝軟體附註:只要你可以上網,只需要用apt-cachesearch查找軟體,用apt-get install軟體
六、bin文件安裝:
如果你下載到的軟體名稱是soft.bin,一般情況下是個可執行文件,安裝方法如下:
引用:
1、開啟一個終端,su -成root使用者;
2、chmod +x soft.bin3、./soft.bin //執行這個指令就可以安裝軟體了
七、不需要安裝的軟體:
🎜有了些軟體,例如lumaqq,是不需要安裝的,自備jre解壓縮後可直接運作。假設下載的是lumaqq.tar.gz,使用方法如下:🎜🎜引用:🎜1. Open a terminal, su - to become the root user;
2. tar -xzvf lumaqq.tar.gz//This step will generate a directory called LumaQQ
3. cd LumaQQ
4 , chmod +x lumaqq //Set the lumaqq program file to be runnable
5. Now you can run lumaqq, just use the command ./lumaqq, but you need to enter the full path each time you run it or switch to the one you just generated
6 in the LumaQQ directory. In order to ensure that it can be used without setting a path, you can create a lumaqq link in the /bin directory and use the command ln-s lumaqq /bin/. Open a terminal and enter lumaqq at any time in the future. You can start the QQ chat software
7. If you want lumaqq to have a menu item, use a menu editing tool, such as AlacarteMenuEditor, and find lumaqq in the LumaQQ directory generated above to set a menu item. Of course, you can also You can directly go to the /usr/share/applications directory and generate your own desktop file according to the format of other *.desktop files in it.
It is recommended that developers do not use first-generation Linux operating systems such as red hat/redflag/suse. There is nothing good about using these except for convenience (which means they are more fool-proof) and luxurious interfaces. Use debian/ubuntu or other second generation software. The apt command is the easiest to install software. The apt command will automatically solve dependency issues during software installation, install packages that are not available, and automatically upgrade packages with lower versions. Of course, this requires your confirmation.
If you use the first generation Linux system such as Red Hat, installing software is more troublesome. rpm-ivhsoftA.rpm is used to install softA software, but usually the problems you may encounter are prompts It says that you need to install a bunch of software such as softB1, softB2, softB3, etc., and then when you install the softB1 software package, you may be prompted to say that you need to install a bunch of software such as softC1, softC2, softC3, softC4... In this way, you only have enough time. I've been looking for these packages everywhere.
If it is not on the CD, you have to download it online. You have to search online for a long time, and all your time is spent searching for software packages. And even if you find these software packages, you may still encounter a problem: the softC2 software package must be installed before the softC1 software package. If the order is wrong, the installation will not be successful.
But who knows? It’s difficult. So, you don’t have time to install and experience the software’s features, let alone develop the software. It is recommended that you install the second generation Linux operating system, typically Debian Linux and Ubuntu Linux. I mentioned a concise installation manual in the article "How to install the Linux operating system on a computer with Windows operating system" before. You can download it and follow it. Then you can install Ubuntu.
The second-generation Linux operating system is quite simple to install software: the first step is to search for the software you want. For example, if you are looking for a game software, its name is myward. The description of this game software is: my own war game. To search for this software package in the Linux operating system, you only need to enter the command apt-cache searchmyward, or enter apt-cache searchwar as part of the software name, or you do not know the software name.
For more detailed explanations on the methods and steps for installing rpm packages under the Linux operating system, please pay attention to the PHP Chinese website for related articles!