The solution is as follows: Enter the terminal window and execute the following instructions sequentially ~
1. Update the software source first
sudo apt-get update
2. Install the following software package
sudo apt-get install Lsb-core libfreeimage3
just show you how to use the original RPM (Rpmbuild) tool to hit the RPM package.As with the previous Deb package using Fakeroot, the Rpmbuild is also a sandbox way to build packages, and the process may be more automated in addition to the cumbersome control files. The working directory for building RPM packages is/usr/src/redhat by default, which may be/usr/src/rpm if you install the RPM package under Debian. You can use the RPM--eval%_topdir to vi
* src. rpm source package. The steps are different from installing the rpm package directly.
The rpm-I/tmp/mypackage-1.0.0-1.src.rpm is not installed yet. Only in ~ Resources of the src. rpm source package are prepared in the/rpmbuild/directory, which can be used to further generate the rpm package. [User @ host ~] $ Cd ~ /Rpmbuild/SPECS [user @ host SPECS] $ rpmbuild-ba mypackage. spec
* The src. rpm sour
personally built and maintained by the Ubuntu source (the source is located in Hangzhou, Zhejiang Province, the hundred mega-shared broadband telecommunications room), including deepin mirrors:
Deb Http://ubuntu.srt.cn/ubuntu/quantal main restricted universe Multiverse
Deb http://ubuntu.srt.cn/ubuntu/ Quantal-security main restricted universe Multiverse
Deb Http
Common Linux distributions can be divided into two categories, the Class Readhat series and the Debian series, where we are divided in the format of their packages, which provide their own package management systems and corresponding tools. The suffix of the package in the class Redhat system is rpm; the suffix of the package in the class Debian system is Deb. On the other hand, the class Redhat system provides an RPM command with the same name to ins
Introduction to the production of RPM packagesAccording to the format of its package, the common Linux distribution can be divided into two categories, class Readhat series and class Debian series , which provide their own software package management system and corresponding tools.The suffix of the package in the class Redhat system is RPM, which provides the RPM command with the same name to install, uninstall, and upgrade the RPM package, and the suffix of the Debian system is
packaged source code package. That means you need to manually unpack and compile the installation. But it can be used directly: Rpmbuild --rebuild xxxxx.src.rpm, to directly compile the source code rpm package into a normal binary RPM package. After executing the above command, you can go to the/USR/SRC/REDHAT/RPMS/ A usable binary RPM package is found in the I386 directory. This type of package has the following kinds of installation methods:
Method 1:
Rpmbuild--rebuild *.src.rpm (if not, try
The files in the/var/cache/apt/archives folder are the installation files that are downloaded when you use the sudo apt-get install appname, which can be cleaned up and, if your system is out of space, you can think of cleaning up from here and getting space. The files under my PC are as follows:
/var/cache/apt/archives $ ls
Acct_6.5.5-1ubuntu4_amd64.deb Libnss3-tools_2%3a3.15.4-0ubuntu0.13.10.1_amd64.deb
The files in the/var/cache/apt/archives folder are the installation files that are downloaded when you use the sudo apt-get install appname, which can be cleaned up and, if your system is out of space, you can think of cleaning up from here and getting space. The files under my PC are as follows:
/var/cache/apt/archives $ ls
Acct_6.5.5-1ubuntu4_amd64.deb Libnss3-tools_2%3a3.15.4-0ubuntu0.13.10.1_amd64.deb
1, sudoapt-getinstallncurses-dev2, sudoapt-getinstallbison3, sudoapt-getinstallflex4, sudoapt-getinstallbuild-essential5, modify gcc version, the default is 4.4.5, this version is too high, changed to 3.4.6 under
1. sudo apt-get install ncurses-dev
2. sudo apt-get install bison
3. sudo apt-get install flex
4. sudo apt-get install build-essential
5. Modify the gcc version. The default value is 4.4.5. This version is too high and changed to 3.4.6.
Download the
The first thing the Ubuntu system has to do is replace it with the source of the update, because some of the source of the system is not accessible in China, and can be accessed in a very slow speed. Fortunately, some companies and universities in the country provide a good source of updates. Here's how to use a faster update source
1
To back up sources.list files:
sudo mkdir/etc/apt/bak
sudo cp/etc/apt/sources.list bak/
Open sources.list:
sudo gedit/etc/apt/sources.list 3
Modify Sources.list t
1. First back up the ubuntu12.04 source list
Sudo CP/Etc/APT/sources. LIST/etc/APT/sources. List. Backup (backup the current source list)
2. Modify the update source
SudoGedit/etc/APT/sources. List (Open Ubuntu12. 04 source list files)
3. Replace the list in with the following list.
163 Source
Deb http: // Mirrors.163.com/ubuntu/ precise main restricted Deb-Src http: // Mirrors.163.com/ub
Debianlenny source list-Debian information for the Linux release, which is described below. Original: Happy
The source of debian lenny is written by myself by reading many source lists and source lists on the Internet. You can change the URL in it!
Deb http://ftp.us.debian.org/debian/ lenny main
Deb http://ftp.us.debian.org/debian/ lenny contrib
Deb http://ftp.
forced installation package cannot guarantee full functionality.
2. how to install the. src. rpm software package. some software packages end with. src. rpm. These software packages contain the source code rpm Package and need to be compiled during installation. There are two installation methods for such software packages,
Method 1: 1. run rpm-I your-package.src.rpm 2. cd/usr/src/redhat/SPECS 3. rpmbuild-bp your-package.specs a
during installation. This type of software package has two installation methods: 1. run rpm-I your-package.src.rpm 2. cd/usr/src/redhat/SPECS 3. rpmbuild-bp your-package.specs A specs file with the same name as your package 4. cd/usr/src/redhat/BUILD/your-package/a directory with the same name as your package 5 .. /configure is the same as compiling common source code software. parameter 6 can be added. ma
In general, there are three main methods for installing software in Linux:One is source code installation, which requires manual compilation by the userThe other is the RPM package (RedHat Linux Packet Manager), which can be installed through the RPM command.Another method is the *. binfile, which is similar to the installation process in Windows.Generally, the following two methods are used to install software in Linux:① The file name is like xxx. i386.rpm. The software package is released in b
In general, there are three main methods for installing software in Linux:One is source code installation, which requires manual compilation by the userThe other is the RPM package (RedHat Linux Packet Manager), which can be installed through the RPM command.Another method is the *. binfile, which is similar to the installation process in Windows.Generally, the following two methods are used to install software in Linux:① The file name is like xxx. i386.rpm. The software package is released in b
software package management can be divided into three types: binary package management, source code package management, script installationIn addition, it is worth noting that there are many ways to obtain and install software for various Linux releases.For example[] Redhat/centos yum installation (with dedicated image sources)[] Sudo apt-get of Ubuntu/Fedora/Debian is suitable for managing and installing deb packages.[] Some software is installed wi
can ignore all dependencies and file problems, all packages can be installed, but such mandatory software packages cannot be fully functional. 2. how to install the. src. rpm software package. some software packages end with. src. rpm. These software packages contain the source code rpm Package and need to be compiled during installation. There are two installation methods for such software packages. Method 1: run rpm-I your-package.src.rpm cd/usr/src/redhat/
installation (with dedicated image sources)
[] Sudo apt-get of Ubuntu/Fedora/Debian is suitable for managing and installing deb packages.
[] Some software is installed with an encrypted disk (for example, cnyunwei)
[] In terms of system O M management personnel, some software commands executed in ssh, C/C ++, or py are also used for automated management. I will not detail them here.
The following figure shows the architecture relationship of linux
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.