Mailinglist Archive: opensuse (929 mails)

< Previous Next >
Re: [opensuse] zypper update -d undocumented feature?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Mon, 31 Mar 2014 05:53:45 +0200 (CEST)
  • Message-id: <alpine.LSU.2.11.1403310523290.20181@Telcontar.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Monday, 2014-03-31 at 04:27 +0200, Carlos E. R. wrote:

I suggest you get hard data to support what you say, and then we'll
review it. Like running "zypper ps" before, doing a "download only" run,
then do a "zypper ps" to verify.

Then you could repeat with a real run, updating things.

Telcontar:~ # zypper ps
No processes using deleted files found.
Telcontar:~ # zypper patch --download-only
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 10 NEW patches are going to be installed:
openSUSE-2014-237 openSUSE-2014-238 openSUSE-2014-243 openSUSE-2014-244
openSUSE-2014-245 openSUSE-2014-251 openSUSE-2014-252 openSUSE-2014-253
openSUSE-2014-255 openSUSE-2014-256

The following 29 packages are going to be upgraded:
MozillaFirefox coreutils dosfstools file file-devel file-magic fontforge
libfreebl3 libfreebl3-32bit liblightdm-gobject-1-0 libmagic1 libmagic1-32bit
libsoftokn3 libsoftokn3-32bit lightdm
lightdm-lang monitoring-tools mozilla-nspr mozilla-nspr-32bit
mozilla-nspr-devel mozilla-nss mozilla-nss-32bit mozilla-nss-certs
mozilla-nss-certs-32bit mozilla-nss-devel python-magic
rdesktop xf86-video-modesetting xinetd

29 packages to upgrade.
Overall download size: 36.9 MiB. Download only.
Continue? [y/n/? shows all options] (y): Retrieving package dosfstools-3.0.22-2.4.1.x86_64 (1/29), 81.1 KiB (211.4 KiB unpacked)
Retrieving delta: ./x86_64/dosfstools-3.0.22-2.1.2_2.4.1.x86_64.drpm, 13.0 KiB
Retrieving: dosfstools-3.0.22-2.1.2_2.4.1.x86_64.drpm
..................................................................................................................................[done]
Applying delta: ./dosfstools-3.0.22-2.1.2_2.4.1.x86_64.drpm
............................................................................................................................[done]
Retrieving package file-magic-5.15-4.20.1.x86_64
(2/29),
302.8 KiB ( 3.3 MiB unpacked)
Retrieving delta: ./x86_64/file-magic-5.15-4.16.1_4.20.1.x86_64.drpm, 15.0 KiB
Retrieving: file-magic-5.15-4.16.1_4.20.1.x86_64.drpm
..................................................................................................................................[done]
Applying delta: ./file-magic-5.15-4.16.1_4.20.1.x86_64.drpm
............................................................................................................................[done]
Retrieving package fontforge-20120731-6.4.1.x86_64
(3/29),
7.1 MiB ( 20.5 MiB unpacked)
Retrieving delta: ./x86_64/fontforge-20120731-6.1.4_6.4.1.x86_64.drpm, 151.8 KiB
Retrieving: fontforge-20120731-6.1.4_6.4.1.x86_64.drpm
....................................................................................................................[done
(98.1 KiB/s)]
Applying delta: ./fontforge-20120731-6.1.4_6.4.1.x86_64.drpm
...........................................................................................................................[done]
Retrieving package libfreebl3-3.15.5-16.1.x86_64
(4/29),
177.2 KiB (487.5 KiB unpacked)
Retrieving delta: ./x86_64/libfreebl3-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 32.3
KiB
Retrieving: libfreebl3-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
................................................................................................................[done
(77.7 KiB/s)]
Applying delta: ./libfreebl3-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
.......................................................................................................................[done]
Retrieving package libmagic1-32bit-5.15-4.20.1.x86_64
(5/29),
60.0 KiB (109.8 KiB unpacked)
Retrieving delta: ./x86_64/libmagic1-32bit-5.15-4.16.1_4.20.1.x86_64.drpm, 17.4
KiB
Retrieving: libmagic1-32bit-5.15-4.16.1_4.20.1.x86_64.drpm
................................................................................................................[done
(40.1 KiB/s)]
Applying delta: ./libmagic1-32bit-5.15-4.16.1_4.20.1.x86_64.drpm
.......................................................................................................................[done]
Retrieving package mozilla-nspr-4.10.4-8.1.x86_64
(6/29),
109.4 KiB (275.7 KiB unpacked)
Retrieving delta: ./x86_64/mozilla-nspr-4.10.2_4.10.4-4.1_8.1.x86_64.drpm, 30.1
KiB
Retrieving: mozilla-nspr-4.10.2_4.10.4-4.1_8.1.x86_64.drpm
................................................................................................................[done
(20.3 KiB/s)]
Applying delta: ./mozilla-nspr-4.10.2_4.10.4-4.1_8.1.x86_64.drpm
.......................................................................................................................[done]
Retrieving package mozilla-nspr-32bit-4.10.4-8.1.x86_64
(7/29),
109.4 KiB (271.1 KiB unpacked)
Retrieving delta:
./x86_64/mozilla-nspr-32bit-4.10.2_4.10.4-4.1_8.1.x86_64.drpm, 28.4 KiB
Retrieving: mozilla-nspr-32bit-4.10.2_4.10.4-4.1_8.1.x86_64.drpm
..........................................................................................................[done
(29.4 KiB/s)]
Applying delta: ./mozilla-nspr-32bit-4.10.2_4.10.4-4.1_8.1.x86_64.drpm
.................................................................................................................[done]
Retrieving package python-magic-5.15-4.20.1.x86_64
(8/29),
7.7 KiB ( 15.1 KiB unpacked)
Retrieving: python-magic-5.15-4.20.1.x86_64.rpm
........................................................................................................................................[done]
Retrieving package xinetd-2.3.15-2.4.1.x86_64
(9/29),
123.6 KiB (286.0 KiB unpacked)
Retrieving delta: ./x86_64/xinetd-2.3.15-2.1.2_2.4.1.x86_64.drpm, 14.1 KiB
Retrieving: xinetd-2.3.15-2.1.2_2.4.1.x86_64.drpm
.........................................................................................................................[done
(50.8 KiB/s)]
Applying delta: ./xinetd-2.3.15-2.1.2_2.4.1.x86_64.drpm
................................................................................................................................[done]
Retrieving package libmagic1-5.15-4.20.1.x86_64
(10/29),
59.4 KiB (110.8 KiB unpacked)
Retrieving delta: ./x86_64/libmagic1-5.15-4.16.1_4.20.1.x86_64.drpm, 18.3 KiB
Retrieving: libmagic1-5.15-4.16.1_4.20.1.x86_64.drpm
...................................................................................................................................[done]
Applying delta: ./libmagic1-5.15-4.16.1_4.20.1.x86_64.drpm
.............................................................................................................................[done]
Retrieving package mozilla-nss-certs-3.15.5-16.1.x86_64
(11/29),
204.0 KiB (631.5 KiB unpacked)
Retrieving delta:
./x86_64/mozilla-nss-certs-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 20.3 KiB
Retrieving: mozilla-nss-certs-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
..........................................................................................................[done
(4.3 KiB/s)]
Applying delta: ./mozilla-nss-certs-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
................................................................................................................[done]
Retrieving package mozilla-nspr-devel-4.10.4-8.1.x86_64
(12/29),
524.9 KiB ( 2.6 MiB unpacked)
Retrieving delta:
./x86_64/mozilla-nspr-devel-4.10.2_4.10.4-4.1_8.1.x86_64.drpm, 71.5 KiB
Retrieving: mozilla-nspr-devel-4.10.2_4.10.4-4.1_8.1.x86_64.drpm
..........................................................................................................[done
(59.5 KiB/s)]
Applying delta: ./mozilla-nspr-devel-4.10.2_4.10.4-4.1_8.1.x86_64.drpm
.................................................................................................................[done]
Retrieving package mozilla-nss-certs-32bit-3.15.5-16.1.x86_64
(13/29),
196.3 KiB (476.1 KiB unpacked)
Retrieving delta:
./x86_64/mozilla-nss-certs-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 20.3 KiB
Retrieving: mozilla-nss-certs-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
...................................................................................................[done
(43.9 KiB/s)]
Applying delta: ./mozilla-nss-certs-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
..........................................................................................................[done]
Retrieving package file-devel-5.15-4.20.1.x86_64
(14/29),
33.9 KiB ( 50.4 KiB unpacked)
Retrieving delta: ./x86_64/file-devel-5.15-4.16.1_4.20.1.x86_64.drpm, 15.5 KiB
Retrieving: file-devel-5.15-4.16.1_4.20.1.x86_64.drpm
..................................................................................................................................[done]
Applying delta: ./file-devel-5.15-4.16.1_4.20.1.x86_64.drpm
............................................................................................................................[done]
Retrieving package file-5.15-4.20.1.x86_64
(15/29),
40.8 KiB ( 63.3 KiB unpacked)
Retrieving delta: ./x86_64/file-5.15-4.16.1_4.20.1.x86_64.drpm, 15.6 KiB
Retrieving: file-5.15-4.16.1_4.20.1.x86_64.drpm
........................................................................................................................................[done]
Applying delta: ./file-5.15-4.16.1_4.20.1.x86_64.drpm
..................................................................................................................................[done]
Retrieving package libsoftokn3-3.15.5-16.1.x86_64
(16/29),
173.1 KiB (445.0 KiB unpacked)
Retrieving delta: ./x86_64/libsoftokn3-3.15.4_3.15.5-12.1_16.1.x86_64.drpm,
30.0 KiB
Retrieving: libsoftokn3-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
...............................................................................................................[done
(28.3 KiB/s)]
Applying delta: ./libsoftokn3-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
......................................................................................................................[done]
Retrieving package libfreebl3-32bit-3.15.5-16.1.x86_64
(17/29),
163.8 KiB (398.6 KiB unpacked)
Retrieving delta:
./x86_64/libfreebl3-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 28.8 KiB
Retrieving: libfreebl3-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
.......................................................................................................................[done]
Applying delta: ./libfreebl3-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
.................................................................................................................[done]
Retrieving package mozilla-nss-3.15.5-16.1.x86_64
(18/29),
597.9 KiB ( 1.9 MiB unpacked)
Retrieving delta: ./x86_64/mozilla-nss-3.15.4_3.15.5-12.1_16.1.x86_64.drpm,
81.9 KiB
Retrieving: mozilla-nss-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
...............................................................................................................[done
(69.6 KiB/s)]
Applying delta: ./mozilla-nss-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
......................................................................................................................[done]
Retrieving package libsoftokn3-32bit-3.15.5-16.1.x86_64
(19/29),
166.6 KiB (434.2 KiB unpacked)
Retrieving delta:
./x86_64/libsoftokn3-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 28.9 KiB
Retrieving: libsoftokn3-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
......................................................................................................................[done]
Applying delta: ./libsoftokn3-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
................................................................................................................[done]
Retrieving package mozilla-nss-devel-3.15.5-16.1.x86_64
(20/29),
480.9 KiB ( 2.6 MiB unpacked)
Retrieving delta:
./x86_64/mozilla-nss-devel-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 37.8 KiB
Retrieving: mozilla-nss-devel-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
.........................................................................................................[done
(37.4 KiB/s)]
Applying delta: ./mozilla-nss-devel-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
................................................................................................................[done]
Retrieving package MozillaFirefox-28.0-17.1.x86_64
(21/29),
24.1 MiB ( 60.0 MiB unpacked)
Retrieving: MozillaFirefox-28.0-17.1.x86_64.rpm
...........................................................................................................................[done
(96.0 KiB/s)]
Retrieving package mozilla-nss-32bit-3.15.5-16.1.x86_64
(22/29),
588.3 KiB ( 1.9 MiB unpacked)
Retrieving delta:
./x86_64/mozilla-nss-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm, 79.5 KiB
Retrieving: mozilla-nss-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
..........................................................................................................[done
(6.1 KiB/s)]
Applying delta: ./mozilla-nss-32bit-3.15.4_3.15.5-12.1_16.1.x86_64.drpm
................................................................................................................[done]
Telcontar:~ # zypper ps
No processes using deleted files found.
Telcontar:~ #


See? No deleted files in use at all. And nothing was installed, because I used the "--download-only" option. Don't you get confused by the wording "Applying delta". It is not installing anything at all.



Now I tell it to really update "mozilla-nspr" (which was downloaded as a drpm):


Telcontar:~ # zypper update mozilla-nspr
Retrieving repository 'Local RPMs' metadata
............................................................................................................................................[done]
Retrieving repository 'OBS: Utilities' metadata
........................................................................................................................................[done]
Building repository 'OBS: Utilities' cache
.............................................................................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 packages are going to be upgraded:
mozilla-nspr mozilla-nspr-devel

2 packages to upgrade.
Overall download size: 634.2 KiB. After the operation, additional 8.7 KiB will
be used.
Continue? [y/n/? shows all options] (y): y
(1/2) Installing: mozilla-nspr-4.10.4-8.1
..............................................................................................................................................[done]
(2/2) Installing: mozilla-nspr-devel-4.10.4-8.1
........................................................................................................................................[done]
There are some running programs that use files deleted by recent upgrade. You
may wish to restart some of them. Run 'zypper ps' to list these programs.
Telcontar:~ #


Notice that the package is not downloaded, it is directly updated. And now I
get the warning that there are deleted files in use. i can double check which;



Telcontar:~ # zypper ps
The following running processes use deleted files:

PID | PPID | UID | Login | Command | Service | Files - ------+-------+------+---------+-----------------+---------+-----------------------
4167 | 1 | 498 | polkitd | polkitd | |
/usr/lib64/libnspr4.so
19378 | 0 | 1000 | cer | dconf | |
/usr/lib64/libnspr4.so
| | | | | |
/usr/lib64/libplc4.so
| | | | | |
/usr/lib64/libplds4.so
19837 | 1 | 1000 | cer | gmain | |
/usr/lib64/libnspr4.so
| | | | | |
/usr/lib64/libplc4.so
| | | | | |
/usr/lib64/libplds4.so
20026 | 19250 | 1000 | cer | thunderbird-bin | |
/usr/lib64/libplds4.so
| | | | | |
/usr/lib64/libplc4.so
| | | | | |
/usr/lib64/libnspr4.so
20923 | 0 | 1000 | cer | mozStorage | |
/usr/lib64/libplds4.so
| | | | | |
/usr/lib64/libplc4.so
| | | | | |
/usr/lib64/libnspr4.so

You may wish to restart these processes.
See 'man zypper' for information about the meaning of values in the above table.
Telcontar:~ #



The file "/usr/lib64/libnspr4.so" was deleted, and replaced with another copy.
Look at the timestamp:

Telcontar:~ # ls -l /usr/lib64/libnspr4.so
- -rwxr-xr-x 1 root root 248920 Mar 19 09:55 /usr/lib64/libnspr4.so
Telcontar:~ # ls -lc /usr/lib64/libnspr4.so
- -rwxr-xr-x 1 root root 248920 Mar 31 05:27 /usr/lib64/libnspr4.so
Telcontar:~ # date
Mon Mar 31 05:33:19 CEST 2014
Telcontar:~ #


It has been replaced NOW.

So, I exit "Thunderbird", that is still running, and one of the entries will
disapear:


Telcontar:~ # zypper ps
The following running processes use deleted files:

PID | PPID | UID | Login | Command | Service | Files - ------+------+------+---------+-----------+---------+-----------------------
4167 | 1 | 498 | polkitd | polkitd | | /usr/lib64/libnspr4.so
19378 | 0 | 1000 | cer | dconf | | /usr/lib64/libnspr4.so
| | | | | | /usr/lib64/libplc4.so
| | | | | | /usr/lib64/libplds4.so
19837 | 1 | 1000 | cer | gmain | | /usr/lib64/libnspr4.so
| | | | | | /usr/lib64/libplc4.so
| | | | | | /usr/lib64/libplds4.so
20923 | 0 | 1000 | cer | StreamT~s | | /usr/lib64/libplds4.so
| | | | | | /usr/lib64/libplc4.so
| | | | | | /usr/lib64/libnspr4.so

You may wish to restart these processes.
See 'man zypper' for information about the meaning of values in the above table.
Telcontar:~ #


Everything is working as it should. Nothing is wrong.


Now I have to patch (update) the rest of the things (which I will not paste here, too boring), and restart some processes. I try login out of my XFCE session, and check "zypper ps" in the console:


Telcontar:~ # zypper ps
The following running processes use deleted files:

PID | PPID | UID | Login | Command | Service | Files
- -----+------+-----+---------+---------+---------+-----------------------
4167 | 1 | 498 | polkitd | polkitd | | /usr/lib64/libnspr4.so

You may wish to restart these processes.
See 'man zypper' for information about the meaning of values in the above table.
Telcontar:~ #


So there is one process to restart. Seeing the above, I do "init 3", and check:

Telcontar:~ # zypper ps
No processes using deleted files found.
Telcontar:~ #


Gotcha. Now init 5, and back to the graphical session.


And no, I'm not going to explain how I knew I had to do an "init 3" :-p



- -- Cheers,
Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlM45tAACgkQtTMYHG2NR9V3MQCfTLyS1T+o++TUoP2qkwQmDLis
bMMAmgPAR69TCvvv9hzivKoO/jhVTymd
=XPoC
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >