[buildiso] (optimization) Trim Xorg pkg cache before copying to ISO? #86

Closed
opened 2015-05-02 07:37:17 +00:00 by philm · 9 comments
philm commented 2015-05-02 07:37:17 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: aadityabagga

Currently, whichever packages are present in Xorg pkg cache are directly copied over to the ISO.

Can it be made like pacman cache, such that only the latest packages in cache are copied over?

One way to do this in my opinion would be to use paccache on the copied the repo, so that old versions of packages get removed, like:

paccache -rv -k1 -c $XORG_PKG_CACHE

Pull request https://github.com/manjaro/manjaro-tools/pull/85

Not completely tested though.

*Created by: aadityabagga* Currently, whichever packages are present in Xorg pkg cache are directly copied over to the ISO. Can it be made like pacman cache, such that only the latest packages in cache are copied over? One way to do this in my opinion would be to use `paccache` on the copied the repo, so that old versions of packages get removed, like: ``` paccache -rv -k1 -c $XORG_PKG_CACHE ``` Pull request https://github.com/manjaro/manjaro-tools/pull/85 Not completely tested though.
philm commented 2015-05-02 08:05:32 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

This makes sense. On my end though the xorg-cache gets always deleted. Please test it and post your result like:

ls [path/to/cache/folder]
[run buildiso]
ls [path/to/cache/folder]
*Created by: philmmanjaro* This makes sense. On my end though the xorg-cache gets always deleted. Please test it and post your result like: <pre>ls [path/to/cache/folder] [run buildiso] ls [path/to/cache/folder]</pre>
philm commented 2015-05-02 08:17:54 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: aadityabagga

I can confirm something similar happened here too.

I am building and checking at which point the Xorg pkgs get erased.

Dont know if it happened on making above change or was it broken before..

*Created by: aadityabagga* I can confirm something similar happened here too. I am building and checking at which point the Xorg pkgs get erased. Dont know if it happened on making above change or was it broken before..
philm commented 2015-05-02 08:32:44 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: aadityabagga

Hmm, this time the packages in xorg cache did not get deleted.

Maybe I had made some mistake the first time..

I used it as follows:

sudo geniso -b stable -p xfce-openrc -x

geniso used above is a wrapper for buildiso which removes custom repo from pacman.conf while building.

*Created by: aadityabagga* Hmm, this time the packages in xorg cache did not get deleted. Maybe I had made some mistake the first time.. I used it as follows: ``` sudo geniso -b stable -p xfce-openrc -x ``` geniso used above is a wrapper for buildiso which removes custom repo from pacman.conf while building.
philm commented 2015-05-02 08:34:32 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Do you use the -c switch in any way?

*Created by: philmmanjaro* Do you use the **-c** switch in any way?
philm commented 2015-05-02 08:35:49 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Anyway, your changes don't harm:

  -> Copying xorg pkgs cache ...
  -> Trimming xorg pkgs ...
==> no candidate packages found for pruning

Please test on your end, if they work for you.

*Created by: philmmanjaro* Anyway, your changes don't harm: <pre> -> Copying xorg pkgs cache ... -> Trimming xorg pkgs ... ==> no candidate packages found for pruning </pre> Please test on your end, if they work for you.
philm commented 2015-05-02 08:42:41 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: aadityabagga

I get the same output as above.

Yes, I used -c.

This is the script I used:
https://forum.manjaro.org/index.php?topic=20637.msg198256#msg198256

I will do more testing with this commit and try to find any issues.

*Created by: aadityabagga* I get the same output as above. Yes, I used -c. This is the script I used: https://forum.manjaro.org/index.php?topic=20637.msg198256#msg198256 I will do more testing with this commit and try to find any issues.
philm commented 2015-05-02 08:57:43 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Then xorg-cache is kept and it is logical ...

*Created by: philmmanjaro* Then xorg-cache is kept and it is logical ...
philm commented 2015-05-02 14:08:23 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: aadityabagga

I generated some more ISOs and did not face again the issue of Xorg cache being removed.

I will try to do more testing, especially when there is more than one version of a package in xorg cache, before closing this.

*Created by: aadityabagga* I generated some more ISOs and did not face again the issue of Xorg cache being removed. I will try to do more testing, especially when there is more than one version of a package in xorg cache, before closing this.
philm commented 2015-05-10 21:41:14 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

This one looks good @aadityabagga
I like it, it removed outdated packages I had in xorg cache.

Remember all, that now cleaning cache must be enabled with -x/-l respectively as opposed to default cleaning previously..

We can reopen at any time, but looks to be working fine so far.

*Created by: udeved* This one looks good @aadityabagga I like it, it removed outdated packages I had in xorg cache. Remember all, that now cleaning cache must be enabled with -x/-l respectively as opposed to default cleaning previously.. We can reopen at any time, but looks to be working fine so far.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#86
No description provided.