LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Changing a package from the repo -- permanent? (https://www.linuxquestions.org/questions/slackware-14/changing-a-package-from-the-repo-permanent-928235/)

Konphine 02-07-2012 11:29 PM

Changing a package from the repo -- permanent?
 
Hi there,

So I'm still trying to setup that compiz standalone desktop, but while I'm at it I've been using XFCE (no others installed), I was curious if I rebuilt the XFCE package, renamed it with the same name and then did a "slackpkg upgrade-all" and ugpraded the XFCE4 package, would it upgrade and install the other programs that I removed, or would it only upgrade the files that I have installed from that package without installing the other ones?

Thank you in advance.

willysr 02-07-2012 11:47 PM

if it has the same name, it would upgrade it. It doesn't really care about version number, so it can be used to upgrade/downgrade any application you have

if the package name has been renamed, you can install the new package and remove the old one, or use upgradepkg oldname%newname*.txz

Konphine 02-08-2012 01:23 AM

That much I know. Perhaps I should clarify:

I download package-v1.0.0 from my mirror, use explodepkg on it and remove a few of the parts that I don't want. I then remove the original package with removepkg package-v1.0.0.

Then I re-create the package with only the parts that I wanted from the previous explodepkg step, and then I use makepkg on this new custom package-v1.0.0.

My main question is, if I use "slackpkg upgrade-all" and there's an upgrade for my package-v1.0.0 to packave-v1.0.1, will it also install the parts that I took out from the package, or will it only upgrade the parts that I left in?

Cultist 02-08-2012 01:32 AM

Quote:

Originally Posted by Konphine (Post 4596786)
That much I know. Perhaps I should clarify:

I download package-v1.0.0 from my mirror, use explodepkg on it and remove a few of the parts that I don't want. I then remove the original package with removepkg package-v1.0.0.

Then I re-create the package with only the parts that I wanted from the previous explodepkg step, and then I use makepkg on this new custom package-v1.0.0.

My main question is, if I use "slackpkg upgrade-all" and there's an upgrade for my package-v1.0.0 to packave-v1.0.1, will it also install the parts that I took out from the package, or will it only upgrade the parts that I left in?

When you do an upgrade via slackpkg, your custom package will be removed and the original version of the updated package will be installed in its place.

If this is a problem, you can edit /etc/slackpkg/blacklist to add a regex blacklist for any custom packages you use, so Slackpkg will ignore them altogether. Manual updates will be required for the blacklisted packages of course, but you won't have to worry about Slackpkg overwriting them.

Konphine 02-08-2012 01:36 AM

Ah I see, thank you Cultist. That answers my question. :)

FeyFre 02-08-2012 02:15 AM

Quote:

will it also install the parts that I took out from the package
Yes, it will. It will install all files/directories whatever stored in new package. pkgtool process package as atom, i.e it will not try to see if this or that file was in previous version, it will install all stored files simultaneously.

Konphine 02-09-2012 02:49 PM

Okay, sorry for rebumping this thread but I was curious about the best way to edit this package (and many others).

Here is the link that I ftp'd the files from:
ftp://ftp.slackware.com/pub/slackwar...urce/xap/xfce/
(yes this computer is running slackware64-current)

Now that I have an xfce/ directory, would it be best to remove the *.tar.xz files from the src/ directory and then run the xfce.SlackBuild script, or would it be best to edit the xfce.SlackBuild script instead?


All times are GMT -5. The time now is 12:44 AM.