Re: Removing syslog due to journalctl already existing:
On 12-24-2024 10:23AM, Patrick Shanahan wrote:
* -pj via openSUSE Users <users@lists.opensuse.org> [12-24-24 09:40]:
Hi, a mcahine here has journalctl already installed and setup. I have discovered here < https://doc.opensuse.org/documentation/leap/reference/html/book-reference/ch... That *no* need to use syslog-ng then... So in order to remove all of the packages it (syslog-ng) pulled in when it was installed would be < zypper rm -r --dry-run --clean-deps syslog-ng Reading installed packages... Resolving package dependencies...
The following 4 packages are going to be REMOVED: libevtlog-4_8-0 libnet9 syslog-ng syslog-service
4 packages to remove.
Package install size change: | 0 B required by packages that will be installed -4.5 MiB | - 4.5 MiB released by packages that will be removed
Backend: classic_rpmtrans Continue? [y/n/v/...? shows all options] (y): - I pressed y and < hightower-i5-6600k:~> sudo zypper rm -r --dry-run --clean-deps syslog-ng Reading installed packages... Resolving package dependencies...
The following 4 packages are going to be REMOVED: libevtlog-4_8-0 libnet9 syslog-ng syslog-service
4 packages to remove.
Package install size change: | 0 B required by packages that will be installed -4.5 MiB | - 4.5 MiB released by packages that will be removed
Backend: classic_rpmtrans Continue? [y/n/v/...? shows all options] (y): y Removed '/etc/systemd/system/bootmsg.service'. Removed '/etc/systemd/system/basic.target.wants/klog.service'. (1/4) Removing: syslog-service-2.0-803.3.noarch ..................................................................................................[done] Removed '/etc/systemd/system/multi-user.target.wants/syslog-ng.service'. Removed '/etc/systemd/system/syslog.service'. (2/4) Removing: syslog-ng-4.8.1-4.2.x86_64 .......................................................................................................[done] (3/4) Removing: libnet9-1.3-1.3.x86_64 ...........................................................................................................[done] (4/4) Removing: libevtlog-4_8-0-4.8.1-4.2.x86_64 .................................................................................................[done] Running post-transaction scripts .................................................................................................................[done] - I believe the 'dry run' feature in the command above didn't work.
your are correct, it did not but it was improperly specified, actually as a repo, "-r" says "Work only with the specified repository" and the repo would be immediately following "-r" which was "--dry-run".
I would have thought the command to fail as it is improbable you have a repo by that name/alias.
How should the zypper command have been written? If possible can you add -vvv for full verbosity also, and yes, intent is to remove all dependencies associated with "syslog-ng" also.
zypper -v rm -u syslog-ng
zypper will request permission to proceed after showing you what it wants to do. thus, I cannot remember ever employing "--dry-run" Oh, I see 'zypper help rm' many options. -u, --clean-deps Automatically remove unneeded dependencies. 🫥thanks
participants (1)
-
-pj