How should I update programs installed from SlackBuilds scripts?
The question is already asked in the title: what is the proper way of updating SlackBuilds installed programs? Should I completely remove them and install again newer version from scratch or not? I'm using Slackware for two years already, but need to update something just now.
|
There is a way to update through the sbopkg gui or sbopkg -c.
It's the 4th choice in the sbopkg's menu: It says: List potential updates to installed SBo packages.;) https://www.linuxquestions.org/quest...stions-892334/ |
I usually download the tar and use a slackbuild that I modify to fit that tar then run it when that is done I then run updatepkg - but you can if you want uninstall the previous one removepkg, then run installpkg too.
|
You don't need to remove them first and then install the new one. Just use upgradepkg.
|
Quote:
Thanks montagdude-;) |
There are some possible hang ups.
Yes, sbopkg provides the update dialog which will present you with all the potential upgrades of SBo-based packages. You can select what you want and let it do its thing. However, it's possible that one program that needs to be updated could mean that one of its dependencies needs to be updated as well. It is then possible that another program that requires that dependency will now need to be rebuilt to work with the new dependency. Some programs are super easy to upgrade while others may require rebuilding a large number of packages. When I used sbopkg, I would typically ignore most updates and only update programs when absolutely needed. When I did upgrade, I prepared myself to rebuild programs, if needed, to make sure it all worked. What program do you want to upgrade? Knowing what it is may allow us to tell you how likely it is that upgrading it could require other packages to be rebuilt (but we might not know for sure without you trying it yourself). But, if you use sbopkg, when you build a new package, it can install/upgrade it for you automatically. If you are building it manually, you can run upgradepkg on the new package and it will upgrade the old one. If you're using other tools, you'd need to look into what they offer. |
i put updatepkg when it should have been upgradepkg sorry, sometimes I think my fingers have a brain of their own.
|
You also have sboupgrade from sbotools to help you out here:
https://pink-mist.github.io/sbotools...upgrade.1.html |
Sbotools īs perfect for that type of routine job:
http://lilianfornea.tk/unixtuts/linu....slackware.txt |
Quote:
Code:
ACKAGE DESCRIPTION: I had 2.79 installed, and it back stroked on me and upgraded ( down graded ) to version 2.78c even though I still use sbotools, now I have to redo it using my own slackbuild to put back that actual upgrade, again. this is how it is suppose to be, Code:
--> Deleting empty directory /opt/blender/2.78/ |
None of the Slackware package management tools attempt to parse the version strings and determine if the package to be installed is actually newer than the one they are replacing, nor should they, because there are an infinite number of possible versioning schemes. An "upgrade" is when the repository you are drawing from has a different (but not necessarily higher) version than the one you have installed. It's up to you to choose whether you actually want to upgrade the package.
By the way, this is one of the reasons why I put a blacklist function in sboui. |
+1
Nothing wrong with sbotools. If you have a local package that you want to protect, blacklist it. And meditate upon what just happened with freetype in -current Code:
+--------------------------+ |
Quote:
hold on let me mess with blender -- brb wow it did screw it up Code:
exit Code:
code to chop it off until it gets the ver numbers code; |
Quote:
Quote:
Incidentally slapt-get (automated upgrade tool) behaves exactly as upgradepkg on that respect :D |
Quote:
or Pat needs to slap-get his butt up in a chair and behind the keyboard and fix that. just kidding Pat. :D |
Quote:
|
I use sbopkg ncurses (I think) manager similar in looks to pkgtool. I've never had downgrades with it. It will tell me if I have a newer package. Occasionally I'll install a newer package than what is available at Slackbuilds. It has a queue where you adjust order and decide if packages will be upgraded or not. If a mistake happens it is user error. https://sbopkg.org/
It also lets you edit build scripts. It saves a local copy for later use. You can delete it the local copy too. It provides all the information available from Slackbuilds. I also have created a few directories with sources and Slackbuilds with some custom edits. |
Quote:
|
Quote:
As 55020 mentioned, freetype was recently "downgraded" in -current from 2.8.1 to 2.8. upgradepkg will "upgrade" the 2.8.1 package with the 2.8 package without any hesitation. It is how it was designed. It is working exactly as it is supposed to. |
Quote:
|
Quote:
If it were to manage version numbers and only install them if they're newer, how is it supposed to differentiate between to commit IDs on which on is newer? cf142a4 could be a newer or older version of 4fd95a2. Or to know if 2.7.9 is newer or older than 2.7.10? Or when they throw letters in it like OpenSSL. Could you imagine trying to build the regex to figure all that out? Rather than adding all the complexity to the program, upgradepkg is used to upgrade the package that is installed with the one you want to install, no matter what the versions are. |
Quote:
|
Quote:
|
Quote:
so obviously the name upgradepkg is misleading |
Quote:
Quote:
|
Quote:
yeah I upgraded to a 1809 used car from my 2017 one. .. its ok it is designed to not turn corners like my other one.the door falls off too but that is ok it is not designed to last that long. I am not that gullible |
Quote:
|
Quote:
There's multiple meanings to a word. |
Quote:
period. saying it is designed to do what it does, really? I can write a function and call it update_everything() then have it delete whatever I want while updating something else, and tell people their is nothing wrong with it, it is designed like that , no need to fit it, same thing. upgradepkg is misleading because it can downgrade as well, I post a true and you're defending a lie. upgrade is upgrade and downgrade is downgrade. designed to do something is something anyone can do and have it NOT do what the name clearly suggest it does then take your stance on it. but why should I be that? get over it? what do I have to get over? I am not the one trying to make you believe upgrading is the same as downgrading. |
Quote:
I don't see this as any different from the people who think a fully patched 14.2 install is "current". While it is correct in one form, it is incorrect in the sense that Slacwkare's development branch is -current. Is there a better word that could be used for upgradepkg? Probably. Is using upgrade in upgradepkg incorrect? No. Is it worth it to try and replace upgradepkg with something else? Probably not. There's far too many things out there that rely on it and most people quickly learn that "upgrade" can mean more than just a newer version. But who knows, maybe you could request Pat to change it in future releases (although, I don't suspect this would happen). |
Quote:
Quote:
I'd love to have you sign some contracts , the way you think( use your ability to rationalize)it looks like someone can pull the wool over your eyes easily, and you like to try and get everyone to agree with you just so yo can feel right about yourself. or so you will never be wrong, even if you are. denial and projection. Quote:
not can be Quote:
... "there's more than one meaning to the word.[upgrade]" you better inform the world then.... rationalize is the attempt to explain or justify (one's own or another's behavior or attitude) with logical, plausible reasons, even if these are not true or appropriate. |
So write a new version of upgradepkg that works the way you think it should and move on. This discussion is getting ridiculous.
|
Quote:
Nor will I say I accept it or agree with it nor say it is right because it is misleading deceptive, confusing, deceiving, fallacious, specious, spurious, false. I just know better then to do that for one, and why not just change it to Installpkg so it will no longer be misleading deceptive, confusing, deceiving, misleading deceptive, confusing, deceiving, fallacious, specious, spurious, false.? and I am the one that is wrong for not accepting something that is not a truth. |
Words have different meanings in different contexts. Apparently, "upgrade" does not mean what you thought it did in the context of Slackware. There's nothing misleading or deceiving about it, no matter how many times you feel like writing that word in one sentence. Let's stop beating this dead horse, shall we?
|
Quote:
"FreeBSD-CURRENT is the “bleeding edge” of FreeBSD development and FreeBSD-CURRENT users are expected to have a high degree of technical skill." "NetBSD-current is a daily snapshot of the NetBSD development source tree. Because it is a work in progress, it may not be particularly well tested, and it may not even compile." |
Quote:
|
Quote:
|
Quote:
What distro has been around the longest? What is going on here is more then meets the eye. One misleads another, that other rationalizes it so they can talk themselves into believing it, so it fits onto there belief system, then whenever someone else tries to point this deception out to them, they immediately go onto a state of denial, then starts their rationalizing to not only keep that deception in their own heads, they are now trying to get others to accept this deception as well. You've never heard of the term, you're only deceiving yourself? Sure, it starts with the little thing's like this. Then whence the process has been accepted, it can and does lead to bigger thing's. All that lie has to do is get his foot in the door, whence one lets it in, it then can take root and do its distortion of reality, which is essentially causing one to not only stop looking for the Truth, but to fight against it whenever it presents itself. And that is exactly what is going on here. |
Quote:
|
Quote:
yeah upgradepkg is mis named because it is designed to not upgrade but to install whatever complies to how ever it has to in order for it to be installed regardless of what version of software is already installed. therefore it is not a properly named function. it was then taken off point, by them that seen I would not accept their deception, which is called deflecting, then you and the others are hating the truth and now are not only accusing me of telling the truth. but telling me to stop telling the truth. what does that say of a person that does that? you're the one that is accepting the deception not I. just like I pointed out the why behind it. here it is, you're fighting against the truth of what I originally presented by accusing me of being wrong and others are now deflecting trying to make me out to be the bad guy in this and all I did was tell the truth. what kind of person does that? |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Things will settle if we stop answering to answers: who cares who will have the last word?
Then, maybe the OP will come back? |
Quote:
|
Quote:
it is called CYA but it you analyze the terms/ words used you have to ask, what is a newer of better version? something that has a higher version number therefore it is still upgrading. then the version before that , that actually worked better is still called How do I downgrade back to what I had because this newer version is buggy. the answer most likely to be found is, you can't "they" already over wrote the code. waaaahhhhhh :cry: says the one that does not like the newer version again you are still side tracking. let me state the oblivious then upgradepkg has no version checking in it, so it allows someone to install whatever no matter what is installed. therefore using just the word upgrade within the function and not indecating it does other then upgrade as well is still misleading. Quote:
want a to do what if's ? |
One more post such as this here and I'll report you for abuse.
Stop it. Now. Start your own thread on the horrible naming of the Slackware package tools if you must, but stop polluting this thread with your obsession. It isn't helping the OP at all and is bringing nothing to the issue presented here. |
Quote:
|
Quote:
Reported. Maybe we'll both be banned, but that's the way it is. |
Quote:
Why you trying to shut me up to hide that truth so that bit of deception ( at face value ) can live on? |
UPGRADEPKG(8)
NAME upgradepkg - upgrade Slackware packages. DESCRIPTION upgradepkg upgrades a Slackware package from an older version to a newer one. It does this by INSTALLING the new package onto the system, and then REMOVING any files from the old package that aren't in the new package. At least man page should be updated I found the name confusing in the past too. |
Quote:
|
All times are GMT -5. The time now is 06:50 AM. |