You are not logged in.

#1 2012-06-10 19:24:36

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Why do I often have to remove a foreign packages when it's updated?

Why do I often have to remove a foreign package when it's updated in order to make it work after an update?
So many questions in AUR that something is updated and it's not working - "well just rebuild it". Meaning that you should first "-Rdd" it and then "-S" it again. If you just "yaourt -Syu --aur" - some might not work after this. So why can't those programs work after an update without deleting them before?

Offline

#2 2012-06-10 19:32:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: Why do I often have to remove a foreign packages when it's updated?

??

Do you have an example?  Perhaps you are referring to development builds (git,cvs,bzr,etc).  But these can be updated with yaourt with the "--devel" switch.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-06-10 19:45:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Why do I often have to remove a foreign packages when it's updated?

Or, makepkg -fi...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2012-06-10 20:52:43

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Why do I often have to remove a foreign packages when it's updated?

Trilby wrote:

??

Do you have an example?

https://aur.archlinux.org/packages.php?ID=37087 ("Just rebuild it.")
https://aur.archlinux.org/packages.php?ID=37779 ("recompiling perl-xml-fast fixes it")
https://aur.archlinux.org/packages.php?ID=24443 ("Same was happening to me, reinstalling perl-gtk2-imageview and perl-gtk2-unique solved the problem. Also had to reinstall perl-goo-canvas for the editing functionality.")

Works for me that same way.

Trilby wrote:

Perhaps you are referring to development builds (git,cvs,bzr,etc).

Not from what I know.

Last edited by Mr. Alex (2012-06-10 21:00:22)

Offline

#5 2012-06-10 21:00:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: Why do I often have to remove a foreign packages when it's updated?

Oh ... those aren't development builds.  But two points: just because advice is given doesn't mean it is good advice.  In these two cases I don't have reason do doubt the quality of the advice though.  So the second point: neither of these are recommending that you rebuild the AUR package; they are indicating that some OTHER package needs to be rebuilt to work with the new version.

Also, neither of these examples would require removing anything, so I'm not sure how they fit with your original question.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2012-06-10 21:01:53

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Why do I often have to remove a foreign packages when it's updated?

Rebuilding does not mean you have to uninstall it first. You just install it over.

# yaourt -S packagename

should do it.

Offline

#7 2012-06-10 21:05:03

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Why do I often have to remove a foreign packages when it's updated?

Trilby, added one more example.

they are indicating that some OTHER package needs to be rebuilt to work with the new version.

For example I update nvidia-bfs and it's not working after it. So I "-Rdd" it and "-S" it again. Suddenly it works.

Also, neither of these examples would require removing anything, so I'm not sure how they fit with your original question.

They require deletion and following installation of the same package. So what aren't you sure about?

Last edited by Mr. Alex (2012-06-11 06:15:09)

Offline

#8 2012-06-10 22:10:56

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Why do I often have to remove a foreign packages when it's updated?

So many questions in AUR that something is updated and it's not working - "well just rebuild it". Meaning that you should first "-Rdd" it and then "-S" it again.

What you describe is reinstalling, not rebuilding. You often have to rebuild local packages because of [Trilby 5: second point]. Reinstalling the same package shouldn't make any difference.

For example I update nvidia-bfs and it's now working after it. So I "-Rdd" it and "-S" it again. Suddenly it works.

Assuming you mean "not" instead of "now": Find out what exactly "not works" is, and why it happens (error message?). Having to recompile local packages to be in sync with other updated  packages is normal. Fixing problems through reinstalling is not.
As it is a kernel module: are you sure there were booted on the same kernel version as the module when xorg failed to start?

Last edited by hokasch (2012-06-10 22:12:28)

Offline

#9 2012-06-11 00:45:51

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Why do I often have to remove a foreign packages when it's updated?

First problem, stop using yaourt. What you're actually doing is rebuilding but because yaourt hides that step (and you don't seem to know about it) you've misunderstood what's going on.

If libWhatever updates, some stuff that depends on it will have to be rebuilt. In the repos, this is taken care of by the devs, in the AUR you have to do it yourself.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#10 2012-06-11 06:19:23

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Why do I often have to remove a foreign packages when it's updated?

hokasch wrote:

Assuming you mean "not" instead of "now"

Yes, it's "not". Fixed it in my message.

hokasch wrote:

As it is a kernel module: are you sure there were booted on the same kernel version as the module when xorg failed to start?

Yes because before rebooting I updated the whole system.

ngoonee wrote:

What you're actually doing is rebuilding but because yaourt hides that step

OK, I get it now. So that's why Gentoo guys rebuild world so often. big_smile

Offline

Board footer

Powered by FluxBB