Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

They are relatively good but absolutely terrible. -- Alan Kay, commenting on Apollos


computers / alt.os.linux.mageia / file delete

SubjectAuthor
* file deletefaeychild
`* Re: file deleteDavid W. Hodgins
 `* Re: file deletefaeychild
  `* Re: file deleteDavid W. Hodgins
   `* Re: file deletefaeychild
    `* Re: file deleteDavid W. Hodgins
     `- Re: file deletefaeychild

1
file delete

<t08ouu$lu4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4502&group=alt.os.linux.mageia#4502

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: faeych...@nomail.afraid.org (faeychild)
Newsgroups: alt.os.linux.mageia
Subject: file delete
Date: Wed, 9 Mar 2022 10:30:34 +1100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <t08ouu$lu4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Mar 2022 23:30:38 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="995a2957f62aa7caa9d0c1b2a7bbd027";
logging-data="22468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1972XVoLwDo65/U4cvmkUD9YSP0xbH0r/I="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:KI71utbOhaIvM60PQatUL2uY52Y=
Content-Language: en-US
 by: faeychild - Tue, 8 Mar 2022 23:30 UTC

One thing I notice is how long it can take to delete some files after an
update.
One in particular is "cpupower". It seems to take forever.

So I was curious about what was happening. I though deleting was a
matter of removing the inode.

regards
--
faeychild
Running plasmashell 5.20.4 on 5.15.25-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso

Re: file delete

<op.1iqkgnmaa3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4503&group=alt.os.linux.mageia#4503

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: file delete
Date: Tue, 08 Mar 2022 18:49:25 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <op.1iqkgnmaa3w0dxdave@hodgins.homeip.net>
References: <t08ouu$lu4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="7becfc281ee51a386dcacab270817865";
logging-data="29494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VU11fU+A8u0lLLuxqiv5wymmd7GUbz5k="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:1XjwIcg8N0x6Yn7kpuR42Uru44A=
 by: David W. Hodgins - Tue, 8 Mar 2022 23:49 UTC

On Tue, 08 Mar 2022 18:30:34 -0500, faeychild <faeychild@nomail.afraid.org> wrote:
> One thing I notice is how long it can take to delete some files after an
> update.
> One in particular is "cpupower". It seems to take forever.
> So I was curious about what was happening. I though deleting was a
> matter of removing the inode.

It's updating the files in /var/lib/rpm that keep track of things like which files
are owned by which package. Whichever package is last to be deleted in a transaction
will be the one that appears to be taking all of the time as it's updating the files
for all of the packages in that transaction.

Regards, Dave Hodgins

Re: file delete

<t0b63t$5ft$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4509&group=alt.os.linux.mageia#4509

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: faeych...@nomail.afraid.org (faeychild)
Newsgroups: alt.os.linux.mageia
Subject: Re: file delete
Date: Thu, 10 Mar 2022 08:27:22 +1100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <t0b63t$5ft$1@dont-email.me>
References: <t08ouu$lu4$1@dont-email.me>
<op.1iqkgnmaa3w0dxdave@hodgins.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 9 Mar 2022 21:27:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="995a2957f62aa7caa9d0c1b2a7bbd027";
logging-data="5629"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Fe4RnpiW3xJa2tUhsSuUmQKgeN24vjZg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:0IesvKWKvQiTz5ypnmX1PFtd1dA=
In-Reply-To: <op.1iqkgnmaa3w0dxdave@hodgins.homeip.net>
Content-Language: en-US
 by: faeychild - Wed, 9 Mar 2022 21:27 UTC

On 9/3/22 10:49, David W. Hodgins wrote:

> It's updating the files in /var/lib/rpm that keep track of things like
> which files
> are owned by which package. Whichever package is last to be deleted in a
> transaction
> will be the one that appears to be taking all of the time as it's
> updating the files
> for all of the packages in that transaction.
>
> Regards, Dave Hodgins

thanks Dave.

Just like the nvidia wrapper.
The more kernels laying around the longer it takes

--
faeychild
Running plasmashell 5.20.4 on 5.15.25-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso

Re: file delete

<op.1ir93xkta3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4510&group=alt.os.linux.mageia#4510

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: file delete
Date: Wed, 09 Mar 2022 17:00:59 -0500
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <op.1ir93xkta3w0dxdave@hodgins.homeip.net>
References: <t08ouu$lu4$1@dont-email.me>
<op.1iqkgnmaa3w0dxdave@hodgins.homeip.net> <t0b63t$5ft$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="7becfc281ee51a386dcacab270817865";
logging-data="14878"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Z2iswaWzrYWECNjglT0TUoOs4vhta7oM="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:FubSCbBtVnHH32xPWeIzdkxg5cM=
 by: David W. Hodgins - Wed, 9 Mar 2022 22:00 UTC

On Wed, 09 Mar 2022 16:27:22 -0500, faeychild <faeychild@nomail.afraid.org> wrote:
> The more kernels laying around the longer it takes

There are several scripts floating around to remove old kernels. I use the
following ...

$ cat /usr/local/sbin/oldkernelsrm
#!/bin/bash
# Set number of packages to keep. Must be 1 or greater
declare -i NumberOfVersionsToKeep=2
set -u
ListInstalledPackages() {
LatestPrefixStart="${LatestPrefix%%-*}"
if [ "virtualbox" == "${LatestPrefixStart}" ] ; then
PackagePrefix="virtualbox-kernel"
elif [ "vboxadditions" == "${LatestPrefixStart}" ] ; then
PackagePrefix="vboxadditions-kernel"
elif [ "xtables" == "${LatestPrefixStart}" ] ; then
PackagePrefix="xtables-addons-kernel"
else
PackagePrefix="$LatestPrefix"
fi
RpmOutputLines=($(rpm -qa $PackagePrefix-\[0-9\]*|sort -V))
PackageCount=${#RpmOutputLines[@]}
if (( $PackageCount > $NumberOfVersionsToKeep )) ; then
LinesKeep=$(( $PackageCount - $NumberOfVersionsToKeep ))
RemoveListNew=("$(printf "%s\n" "${RpmOutputLines[@]}"|head -n $LinesKeep)")
RemoveList=(${RemoveList[@]-} ${RemoveListNew[@]})
fi
} ProcessLatest() {
x="${LatestPackage%-*}" # strip last hyphen and following (removes rpm Release)
x="${x%-*}" # strip last hyphen and following (removes rpm Version')
LatestPrefix="${x%-*}" # strip last hyphen and following (removes '-latest')
ListInstalledPackages
} RemoveList=( )
LatestPackagesList=($(rpm -qa *latest |grep -v perl-latest|sort))
for LatestPackage in "${LatestPackagesList[@]}"; do
ProcessLatest
done
if (( ${#RemoveList[@]} > 0 )) ; then
urpme --wait-lock ${RemoveList[@]}
fi
exit

After saving the above in the text file, don't forget to mark it executable.

Regards, Dave Hodgins

Re: file delete

<t0dn1b$iq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4513&group=alt.os.linux.mageia#4513

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: faeych...@nomail.afraid.org (faeychild)
Newsgroups: alt.os.linux.mageia
Subject: Re: file delete
Date: Fri, 11 Mar 2022 07:28:24 +1100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <t0dn1b$iq$1@dont-email.me>
References: <t08ouu$lu4$1@dont-email.me>
<op.1iqkgnmaa3w0dxdave@hodgins.homeip.net> <t0b63t$5ft$1@dont-email.me>
<op.1ir93xkta3w0dxdave@hodgins.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Mar 2022 20:28:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="11cdd3df0ab4f66819f4079b275e89bb";
logging-data="602"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19blqtAyZ7MsfNcKDR7+DBEkl/yIlZ9524="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:EbMSepfhTxjRYsqBqOmJck5fBj4=
In-Reply-To: <op.1ir93xkta3w0dxdave@hodgins.homeip.net>
Content-Language: en-US
 by: faeychild - Thu, 10 Mar 2022 20:28 UTC

On 10/3/22 09:00, David W. Hodgins wrote:

>
> After saving the above in the text file, don't forget to mark it
> executable.
>
> Regards, Dave Hodgins

I see that it mentions virtualbox - a small complication.

I used to do it the hard way with MCC, listing all the kernels and
sorting carefully through the mess, triple quadruple checking.

Until I discovered MCC could list just the installed files - the moment
of stupid

--
faeychild
Running plasmashell 5.20.4 on 5.15.25-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso

Re: file delete

<op.1it2r6k4a3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4514&group=alt.os.linux.mageia#4514

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: file delete
Date: Thu, 10 Mar 2022 16:17:56 -0500
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <op.1it2r6k4a3w0dxdave@hodgins.homeip.net>
References: <t08ouu$lu4$1@dont-email.me>
<op.1iqkgnmaa3w0dxdave@hodgins.homeip.net> <t0b63t$5ft$1@dont-email.me>
<op.1ir93xkta3w0dxdave@hodgins.homeip.net> <t0dn1b$iq$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="29edcdcef7c04038110598e6c4d41673";
logging-data="5134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4zykU2tjc1Am1nQWawyNLf6ru1dBuxLw="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:NrXAcZMkh7JhIhw8Y6c7jBZJyrE=
 by: David W. Hodgins - Thu, 10 Mar 2022 21:17 UTC

On Thu, 10 Mar 2022 15:28:24 -0500, faeychild <faeychild@nomail.afraid.org> wrote:
> On 10/3/22 09:00, David W. Hodgins wrote:
>> After saving the above in the text file, don't forget to mark it
>> executable.

> I see that it mentions virtualbox - a small complication.

It handles any of the kernel related "latest" packages ...
$ urpmq -y latest|grep kernel|sort -u
kernel-desktop586-devel-latest
kernel-desktop586-latest
kernel-desktop-devel-latest
kernel-desktop-latest
kernel-linus-devel-latest
kernel-linus-latest
kernel-linus-source-latest
kernel-server-devel-latest
kernel-server-latest
kernel-source-latest
virtualbox-kernel-desktop-latest
virtualbox-kernel-server-latest
xtables-addons-kernel-desktop586-latest
xtables-addons-kernel-desktop-latest
xtables-addons-kernel-server-latest

It has the exception logic needed to handle the differences in naming patterns
between the kernels and the vb/xtables kernel packages.

qa team members using it have to be careful to say no to the removal if it will
uninstall any of the "latest" packages as the requires would no longer be met,
such as when there have been several kernels installed without a corresponding kmod
update, but other than that it works well. We have to wait till the kmod packages
are updated too (kmod includes both the vb and xtables kernel packages).

For regular users who do not install kernels from updates testing, it works fine
at any time.

> I used to do it the hard way with MCC, listing all the kernels and
> sorting carefully through the mess, triple quadruple checking.
> Until I discovered MCC could list just the installed files - the moment
> of stupid

:-)

Regards, Dave Hodgins

Re: file delete

<t0f0uu$m9o$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4523&group=alt.os.linux.mageia#4523

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: faeych...@nomail.afraid.org (faeychild)
Newsgroups: alt.os.linux.mageia
Subject: Re: file delete
Date: Fri, 11 Mar 2022 19:23:55 +1100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <t0f0uu$m9o$1@dont-email.me>
References: <t08ouu$lu4$1@dont-email.me>
<op.1iqkgnmaa3w0dxdave@hodgins.homeip.net> <t0b63t$5ft$1@dont-email.me>
<op.1ir93xkta3w0dxdave@hodgins.homeip.net> <t0dn1b$iq$1@dont-email.me>
<op.1it2r6k4a3w0dxdave@hodgins.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Mar 2022 08:23:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ddf9be354b5fd90d4a199b5502170902";
logging-data="22840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18g3UsA733qEJxAsUVuAgP7yHn9mAn6E5o="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:qfixqZboPKkLbJ45WTlF3FWkJH0=
In-Reply-To: <op.1it2r6k4a3w0dxdave@hodgins.homeip.net>
Content-Language: en-US
 by: faeychild - Fri, 11 Mar 2022 08:23 UTC

On 11/3/22 08:17, David W. Hodgins wrote:

> $ urpmq -y latest|grep kernel|sort -u

I sometimes lose awareness of just how many data lists are stored locally

regards

faeychild
Running plasmashell 5.20.4 on 5.15.25-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor