"ZZ" rpm Uninstall and install Opera Software

Source: Internet
Author: User
Tags bz2 sqlite

Today, the first use of the RPM command to the Opera Software uninstall, the installation is needless to say, is at the beginning of the installation of the F7 from the Opera official website directly downloaded Linux version of opera, but in the installation process seems to have been wrong, after the opening of opera can not enter Chinese characters, So I had to delete him.

[Hanlong@wh_eric yum]$ Rpm-qa |grep Opera
opera-9.25-20071214.6
[Hanlong@wh_eric yum]$ Whereis Opera
Opera:/usr/bin/opera/usr/lib/opera/usr/share/opera/usr/share/man/man1/opera.1.gz
[Hanlong@wh_eric yum]$ sudo rpm-e opera

This is deleted, in order to see if there is no this software, I have queried again:

Hanlong@wh_eric yum]$ Rpm-qa |grep Opera
[Hanlong@wh_eric yum]$ Whereis Opera
Opera:/usr/lib/opera/usr/share/opera

In this way, the perfect uninstall.

After the uninstall I use the Yum installation to appear the following prompt:

[Hanlong@wh_eric yum]$ sudo yum install Opera
Loading "Installonlyn" plugin
Loading "Fastestmirror" plugin
Loading mirror speeds from cached hostfile
* livna:rpm.livna.org
* fedora:fedora.candishosting.com.cn
* updates:opensource.nchc.org.tw
* Freshrpms:ayo.ie.freshrpms.net
Setting up Install Process
Parsing Package Install arguments
Livna 100% |=========================| 2.1 KB 00:00
PRIMARY.SQLITE.BZ2 100% |=========================| 180 KB 00:02
Fedora 100% |=========================| 2.1 KB 00:00
Updates 100% |=========================| 2.3 KB 00:00
PRIMARY.SQLITE.BZ2 100% |=========================| 3.1 MB 00:19
Freshrpms 100% |=========================| 2.1 KB 00:00
PRIMARY.SQLITE.BZ2 100% |=========================| 109 KB 00:02
Nothing todo
[Hanlong@wh_eric yum]$ Rpm-qa |grep Opera

Then I used the RPM query, found that there is no installed, indicating that my Yum source does not have opera's software package, so I had to download the RPM package directly from the official web.

Download to the ~/download directory:

[Hanlong@wh_eric download]$ ls
Drcom.txt stardict-3.0.0-3.fc7.i386.rpm
Make WanPacket.dll
Mfc42u.dll wine-all.rpm.tar.gz
MPlayer XMMS
Npptools.dll xpdf-3.02-4.fc7.i386.rpm
opera-9.27-20080331.6-shared-qt.i386-en.rpm Yum
Packet.dll

And then installed with RPM, there are the following:

[Hanlong@wh_eric download]$ RPM-IVH opera-9.27-20080331.6-shared-qt.i386-en.rpm
Error:can ' t create transaction lock on/var/lib/rpm/__db.000

Then I went into the directory to find:

[Hanlong@wh_eric download]$ cd/var/lib/rpm
[Hanlong@wh_eric rpm]$ ls
Basenames __db.003 Installtid provideversion sha1header
Conflictname dirnames Name Pubkeys Sigmd5
__db.001 filemd5s Packages requirename triggername
__db.002 Group Providename requireversion

Found that there is no _db.000 this file, with the sudo command to install also not, the last reboot system installed or not. I looked at the file properties again

[Hanlong@wh_eric rpm]$ Ls-l
Total 39388
-rw-r–r–1 rpm rpm 5296128 05-11 21:17 basenames
-rw-r–r–1 rpm rpm 12288 01-02 13:17 conflictname
-rw-r–r–1 root root 24576 05-11 21:21 __db.001
-rw-r–r–1 root root 1318912 05-11 21:21 __db.002
-rw-r–r–1 root root 450560 05-11 21:21 __db.003

Found _db.00x such a file created this is the root user, so I switched to the root user in the install all buttoned up.

[Hanlong@wh_eric rpm]$ Su-
Password:
[Root@wh_eric ~]# cd/home/hanlong/download/
[Root@wh_eric download]# RPM-IVH opera-9.27-20080331.6-shared-qt.i386-en.rpm
Preparing ... ########################################### [100%]
1:opera ########################################### [100%]
[Root@wh_eric download]# Rpm-qa |grep Opera
opera-9.27-20080331.6

This is looking at the _db.000 file that has been created well.

[Root@wh_eric download]# ls/var/lib/rpm
Basenames __db.002 Group providename requireversion
Conflictname __db.003 Installtid provideversion sha1header
__db.000 dirnames Name Pubkeys Sigmd5
__db.001 filemd5s Packages requirename triggername

have been installed, and enjoy the fast opera brings.

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.