Add --force flag. Even the flag looks like something horrible, it will do the right thing for you.
Neither rpm or poldek have ---replacefiles option to my knowledge, as that would be appropriate to "force" only certain action On Wed, Apr 21, 2021, 08:43 Wojciech Błaszkowski <[email protected]> wrote: > > Hello, > > how to do it smooth, with out removing /etc/sysconfig/kernel or with out > juggle between varous kernels like kernel-5.11.x? > > [root@vm-jobs-new ~]# LANG=en_US.UTF-8 > [root@vm-jobs-new ~]# uname -a > Linux vm-jobs-new 5.10.4-1 #1 SMP Thu Dec 31 16:11:13 CET 2020 x86_64 > Common_KVM_processor PLD Linux > [root@vm-jobs-new ~]# poldek > > > > Welcome to the poldek shell mode. Type "help" for help with commands. > > poldek:/all-avail> just-install kernel-5.10-5.10.26-1.x86_64 > Loading [pndir]th... > Loading [pndir]th... > 30331 packages read > Processing dependencies... > There are 1 package to install: > A kernel-5.10-5.10.26-1.x86_64 > This operation will use 66.3MB of disk space. > kernel-5.10-5.10.26-1.x86_64.rpm: digests OK > Need to get 63.2MB of archives. > kernel-5.10-5.10.26-1.x86_64.rpm: digests OK > Executing pm-command.sh --install -vh --root / --define > _check_dirname_deps 0... > warning: > /root/.cache/poldek/https_ftp.th.pld-linux.org.dists.th.PLD.x86.64.RPMS/kernel-5.10-5.10.26-1.x86_64.rpm: > > Header V4 DSA/SHA1 Signature, key ID e4f1bc2d: NOKEY > Verifying... ################################# > [100%] > Preparing... ################################# > [100%] > file /etc/sysconfig/kernel from install of > kernel-5.10-3:5.10.26-1.x86_64 conflicts with file from package > kernel-3:5.10.4-1.x86_64 > There were errors > poldek:/all-avail> quit > [root@vm-jobs-new ~]# rpm -qf /etc/sysconfig/kernel > > > kernel-5.10.4-1.x86_64 > > -- > Pozdrawiam, > Wojciech Błaszkowski > www.blaszkowski.com, +48.600197207 > _______________________________________________ > pld-users-en mailing list > [email protected] > http://lists.pld-linux.org/mailman/listinfo/pld-users-en > _______________________________________________ pld-users-en mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-users-en
