Replace new package glibc in old - how?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Replace new package glibc in old - how?

Postby xpris » Jul 20th, '12, 12:32

Hey.
Is it possible to restore the previously installed package?

The Mageia 2, i installed from the repo Cauldron, a new version of VLC 2.0.3, because previous something spoiled.
Unfortunately, along with VLC, manager has installed the package "glibc-2.16-1.mga3.x86_64".

Previously, I had a package "glibc-2.14.1-8.mga2.x86_64" and wants to go back, because that's new - 2.16, there are problems.

How can I do? Because blocking media Cauldron, and pat the command "urpmi glbic" brings a message that can not be installed because of unsatisfactory package glibc-2.16.
While trying to uninstall "urpme glibc" can not be done, because the message pops up, the possibility of system failure.
Maybe "replacepkgs packagename"?

I want poprost replace these packages and get back to glibc-2.16. Can do this?
User avatar
xpris
 
Posts: 32
Joined: Aug 7th, '11, 13:59
Location: Poland - Zamość

Re: Replace new package glibc in old - how?

Postby tom_ » Jul 20th, '12, 13:02

What you are doing is a dangerus operation,
so I suggest you to do a backup first, expecially if you important data on that machine

this command should work for you

Code: Select all
# rpm  -Uhv --nodeps --replacepkgs your.rpm


but it is better if have a look to the rpm help

your.rpm is or a downloaded file or a file with the full url like

ftp://ftp.xxx.org/mirrors/.../yyy.rpm
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: Replace new package glibc in old - how?

Postby xpris » Jul 21st, '12, 13:42

I have a small issue:

Code: Select all
[root@localhost x]# rpm  -Uhv --nodeps --replacepkgs /home/x/Pulpit/glibc-2.14.1-8.mga2.x86_64.rpm
Przygotowywanie...          ########################################### [100%]
        pakiet glibc-6:2.16-1.mga3.x86_64 (nowszy niż glibc-6:2.14.1-8.mga2.x86_64) jest już zainstalowany


Which translated into English means:
Preparation - 100%, and the package glibc-6 :2.16-1.mga3.x86_64 - is newer than the glibc-2.14 is already installed.

Is there another way to replace the package?
User avatar
xpris
 
Posts: 32
Joined: Aug 7th, '11, 13:59
Location: Poland - Zamość

Re: Replace new package glibc in old - how?

Postby tom_ » Jul 21st, '12, 14:24

this means that you have installed more versions of glibc.

Code: Select all
rpm -qa | grep  glibc


will show you the gllibc versions installed on your machine,
then use (as root)

Code: Select all
urpme aglibcversion


to remove the version you'd like to delete.

Pay attention to eventul warning messages,
expecially if they asks to delete other packeges
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: Replace new package glibc in old - how?

Postby xpris » Jul 21st, '12, 14:39

I have:
Code: Select all
[root@localhost x]# rpm -qa | grep  glibc
glibc-2.16-1.mga3
lib64glibc_lsb-2.4.7-7.mga1
glibc-devel-2.16-1.mga3


and I have uninstalled:
Code: Select all
[root@localhost x]# urpme aglibcversion
nieznany pakiet: aglibcversion
[root@localhost x]# urpme glibc-devel-2.16-1.mga3
W celu spełnienia zależności  usunięte zostaną 5 pakiety (5.7MB):
  enjoy-0.1.0-0.r69188.1.mga2.x86_64
   (z powodu brakującego liblightmediascanner.so.0()(64bit))
  glibc-devel-2.16-1.mga3.x86_64
  lib64sqlite3-devel-3.7.11-1.mga2.x86_64
   (z powodu brakującego devel(libdl(64bit)))
  lightmediascanner-0.4.1-3.mga2.x86_64
   (z powodu brakującego devel(libdl(64bit)),
    z powodu brakującego pkgconfig(sqlite3),
    z powodu brakującego devel(libsqlite3(64bit)))
  task-e17-1-7.mga2.noarch
   (z powodu brakującego enjoy)
Usunąć pakiet 5? (t/N) t
usuwanie enjoy-0.1.0-0.r69188.1.mga2.x86_64 glibc-devel-2.16-1.mga3.x86_64 lib64sqlite3-devel-3.7.11-1.mga2.x86_64 lightmediascanner-0.4.1-3.mga2.x86_64 task-e17-1-7.mga2.noarch
usuwanie pakietu task-e17-2:1-7.mga2.noarch
usuwanie pakietu enjoy-0.1.0-0.r69188.1.mga2.x86_64
usuwanie pakietu lightmediascanner-0.4.1-3.mga2.x86_64
usuwanie pakietu lib64sqlite3-devel-3.7.11-1.mga2.x86_64
usuwanie pakietu glibc-devel-6:2.16-1.mga3.x86_64
writing /var/lib/rpm/installed-through-deps.list

[root@localhost x]# urpme glibc-2.16-1.mga3
Usunięcie poniższego pakietu spowoduje uszkodzenie systemu:
  basesystem-minimal-2-6.mga2.x86_64
   (z powodu brakującego perl-base,
    z powodu brakującego grep,
    z powodu brakującego sed,
    z powodu brakującego chkconfig,
    z powodu brakującego psmisc,
    z powodu brakującego module-init-tools,
    z powodu brakującego mingetty,
    z powodu brakującego net-tools,
    z powodu brakującego findutils,
    z powodu brakującego e2fsprogs,
    z powodu brakującego kbd,
    z powodu brakującego which,
    z powodu brakującego less,
    z powodu brakującego gzip,
    z powodu brakującego procps,
    z powodu brakującego shadow-utils,
    z powodu brakującego util-linux,
    z powodu brakującego mount,
    z powodu brakującego losetup,
    z powodu brakującego initscripts,
    z powodu brakującego tar,
    z powodu brakującego rpm,
    z powodu brakującego logrotate,
    z powodu brakującego cronie,
    z powodu brakującego time,
    z powodu brakującego utempter,
    z powodu brakującego timezone,
    z powodu brakującego passwd,
    z powodu brakującego stat,
    z powodu brakującego coreutils,
    z powodu brakującego makedev,
    z powodu brakującego etcskel,
    z powodu brakującego setup,
    z powodu brakującego crontabs,
    z powodu niesatysfakcjonującego pakietu mageia-release >= 1)


So next I can not remove or replace
User avatar
xpris
 
Posts: 32
Joined: Aug 7th, '11, 13:59
Location: Poland - Zamość

Re: Replace new package glibc in old - how?

Postby jkerr82508 » Jul 21st, '12, 16:07

Try using --oldpackage instead of --replacepkgs, for both glibc and glibc-devel. Assuming that both rpm's are in the same directory:

Code: Select all
rpm  -Uhv --nodeps --oldpackage  /home/x/Pulpit/glibc-2.14.1-8.mga2.x86_64.rpm
rpm  -Uhv --nodeps --oldpackage  /home/x/Pulpit/glibc-devel-2.14.1-8.mga2.x86_64.rpm

If that is unsuccessful, try using --force instead of --oldpackage

You may have other cauldron packages installed. You can check:

Code: Select all
rpm -qa | grep mga3

It would be best to revert them to the mga2 versions.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Replace new package glibc in old - how?

Postby tom_ » Jul 21st, '12, 16:21

xpris wrote:Preparation - 100%, and the package glibc-6 :2.16-1.mga3.x86_64 - is newer than the glibc-2.14 is already installed.


sorry, I misread your previous message :oops:

and it is strange, as
--oldpackage upgrade to an old version of the package (--force on upgrades does this automatically)

try to install the old glibc

Code: Select all
rpm  -i --force  --nodeps /home/x/Pulpit/glibc-2.14.1-8.mga2.x86_64.rpm  /home/x/Pulpit/glibc-devel-2.14.1-8.mga2.x86_64.rpm


and then, if it works, remove the newer libc with

Code: Select all
urpme glibc-2.16-1.mga3
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: Replace new package glibc in old - how?

Postby jkerr82508 » Jul 21st, '12, 16:58

I'm not sure that the install option is appropriate here. He's not trying to install glibc, he wants to "upgrade" to an earlier version. (I think that it's best to use the --force option only as a last resort.)

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Replace new package glibc in old - how?

Postby xpris » Jul 22nd, '12, 13:51

I changed packets, but unfortunately the system did not get up after a reboot :/
Probably waiting for me to reinstall.

Thanks for help.
User avatar
xpris
 
Posts: 32
Joined: Aug 7th, '11, 13:59
Location: Poland - Zamość

Re: Replace new package glibc in old - how?

Postby doktor5000 » Jul 22nd, '12, 16:48

Well, things like this can happen when you add cauldron repositories, and just do an update blindly, without knowing the consequences and what can happen - that's why i have that warning about cauldron in my signature.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18016
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest