On 14/04/2021 04.05, Mats Wichmann wrote:
> On 4/12/21 5:11 PM, Rich Shepard wrote:
>> I'm running Slackware64-14.2 and keep a list of installed packages.
>> When a
>> package is upgraded I want to remove the earlier version, and I've not
>> before written a script like this. Could there be a modul
On Sun, 18 Apr 2021 06:38:16 GMT, Gilmeh Serda wrote:
> On Mon, 12 Apr 2021 16:11:21 -0700, Rich Shepard wrote:
>
>> All suggestions welcome.
>
> Assuming you want to know which is the oldest version and that the same
> scheme is used all the time, could this work?
>
s1='atftp-0.7.2-x86_64-2_
On Tue, 13 Apr 2021, jak wrote:
If I understand your problem correctly, the problem would be dealing with
numbers as such in file names. This is just a track but it might help you.
This example splits filenames into strings and numbers into tuples,
appends the tuple into a list, and then sorts t
Il 13/04/2021 01:11, Rich Shepard ha scritto:
I'm running Slackware64-14.2 and keep a list of installed packages. When a
package is upgraded I want to remove the earlier version, and I've not
before written a script like this. Could there be a module or tool that
already exists to do this? If not
On 2021-04-12, 2qdxy4rzwzuui...@potatochowder.com
<2qdxy4rzwzuui...@potatochowder.com> wrote:
> I don't know whether or how Slackware handles "compound" package names
> (e.g., python-flask), but at some point, you're going to have to pull
> apart (aka---gasp--parse), the package names to come up
On 4/12/21 5:11 PM, Rich Shepard wrote:
I'm running Slackware64-14.2 and keep a list of installed packages. When a
package is upgraded I want to remove the earlier version, and I've not
before written a script like this. Could there be a module or tool that
already exists to do this? If not, whic
On Tue, 13 Apr 2021, Cameron Simpson wrote:
The problem is not that simple. Sometimes the package maintainer upgrades
the package for the same version number so there could be abc-1.0_1_SBo.tgz
and abc-1.0_2_SBo.tgz. The more involved route will be taken.
If that _1, _2 thing is like RedHat's
On 12Apr2021 19:11, Rich Shepard wrote:
>On Tue, 13 Apr 2021, Cameron Simpson wrote:
>>Alternatively, and now that I think about it, more simply: _if_ the
>>package files can be sorted by version, then all you need to do is read a
>>sorted listing and note that latest fil for a particular package.
On Tue, 13 Apr 2021, Cameron Simpson wrote:
I do not know if there are preexisting modules/tools for this, but I
recommend looking at slackware's package management tool - they usually
have some kind of 'clean" operation to purge "old" package install files.
Sometimes that purges all the install
On Tue, Apr 13, 2021 at 9:54 AM Cameron Simpson wrote:
> Note that this depends on sorting by version. A lexical sort (eg
> "ls|sort") will look good intil a package version crosses a boundary
> like this:
>
> 1.9.1
> 1.10.0
>
> A lexical sort will put those the other way around because "9
On 12Apr2021 16:11, Rich Shepard wrote:
>I'm running Slackware64-14.2 and keep a list of installed packages. When a
>package is upgraded I want to remove the earlier version, and I've not
>before written a script like this. Could there be a module or tool that
>already exists to do this? If not, w
On 2021-04-12 at 16:11:21 -0700,
Rich Shepard wrote:
> I'm running Slackware64-14.2 and keep a list of installed packages. When a
> package is upgraded I want to remove the earlier version, and I've not
> before written a script like this. Could there be a module or tool that
> already exists to
12 matches
Mail list logo