[Ubuntu] Steps to install the Deb File

Source: Internet
Author: User

What is missing?
Understand what the terminal prompts you
Dependency: gir1.2-unique-3.0, but cannot install it
This means you need to install the gir1.2-unique-3.0 package, just use apt-Get install.
# Sudo apt-Get install Python-keybinder
If the installation continues, use apt-get-F install

 

The Ubuntu package format is Deb. If you want to install the RPM package, use alien to convert the RPM to Deb.
Sudo apt-Get install alien # alien is not installed by default, so install it first
Sudo alien XXXX. RPM # convert RPM to Deb. a xxxx. Deb with the same name is generated.
Sudo dpkg-I XXXX. Deb # Installation
Note that the Deb package converted from alien cannot be installed smoothly in 100%, so it is best to use Deb directly if you can find Deb.

Sometimes, the software we want to use is not included in the Ubuntu repository, and the program itself does not provide the Deb package that can be used by Ubuntu, and you do not want to compile it from the source code. But if the software provides an RPM package, we can also install it in Ubuntu.
Method 1:

1. Install the alien and fakeroot tools first. The former can convert the RPM package to the Deb package. The installation command is:
Sudo apt-Get install alien fakeroot
2. Download the RPM package that needs to be installed for backup, for example, package. rpm.
3. Use alien to convert an RPM package to a deb package:
Fakeroot alien package. rpm
4. Once the conversion is successful, we can immediately use the following command to install it:
Sudo dpkg-I package. Deb

Method 2:
 
1.
Code:
Sudo apt-Get install RPM alien
2.
Code:
Alien-D package. rpm

3.
Code:
Sudo dpkg-I package. Deb

 

 

Apt-Get install Vim openssh-server rsync rdate Bzip2 GCC flex bison sysstat NMAP Portmap make psmisc lrzsz gcc gdb g ++ libxml2-dev libncurses5-dev automake1.9 libtool dnsutils rcconf apt-Get update -- Modify/etc /APT/sources. run the command after list or/etc/APT/preferences. In addition, you need to regularly run this command to ensure that your package list is up-to-date.
Apt-Get install packagename -- install a new software package (see aptitude below)
Apt-Get remove packagename -- uninstall an installed software package (keep the configuration file)
Apt-Get -- purge remove packagename -- uninstall an installed software package (delete the configuration file)
Dpkg -- force-all -- purge packagename some software is hard to uninstall, and it can be used to block other software applications, but it is a little risky.
Apt-Get autoclean apt will back up installed or unloaded software on the hard disk, so if you need space, you can run this command to delete the software you have deleted.
The apt-Get clean command will also delete the backup of the installed software, but this will not affect the use of the software.
Apt-Get upgrade -- update all installed software packages
Apt-Get dist-upgrade -- upgrade the system to the new version.
Apt-cache search string -- search for strings in the package list
Dpkg-l package-name-pattern -- list all software packages that match the pattern. If you do not know the full name of the software package, you can use "* package-name-pattern *".
Aptitude-view installed or available software packages in detail. Similar to Apt-Get, aptitude can be called through the command line, but is limited to some commands-the most common commands are installation and uninstallation. Because aptitude knows more information than apt-get, it is more suitable for installation and uninstallation.
Apt-Cache showpkg pkgs -- displays the package information.
Apt-Cache dumpavail -- print the list of available packages.
Apt-Cache show pkgs -- displays Software Package records, similar to dpkg-print-avail.
Apt-Cache pkgnames -- print the names of all packages in the package list.
Dpkg-s file -- the package to which the file belongs.
Dpkg-l package -- list all files in the package.
Apt-File
Search
Filename -- find a software package that contains a specific file (not necessarily installed). The file names contain the specified strings. Apt-file is an independent software package. You must
Install apt-Get install first, and then run apt-file update. If apt-file search
Filename outputs too much content. You can try to use apt-file search filename | grep-W
Filename (only show the names of the complete words in the specified string) or similar methods, such as apt-file search filename |
Grep/bin/(only files in folders such as/bin or/usr/bin are displayed. If you want to find a specific execution file, this is helpful ).

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.