Welcome to the Linux Foundation Forum!

Lab 6.2 on openSUSE Tumbleweed

In the 6.2 exercise, the instructions say to backup /var/lib/rpm before rebuilding the database. However, on oS TW, that won't work with a simple cp, as the directory is a symlink:

/var/lib # ls -ld rpm
lrwxrwxrwx 1 root root 26 Mar 23 2020 rpm -> ../../usr/lib/sysimage/rpm

So using cp will result in two directories linking to the same destination. I did not check the behavior of other systems. I'm using TW 20201228 here.

Comments

  • coop
    coop Posts: 915

    We do not support Tumbleweed. By design it changes by the day. I recommend you use a more straightforward distribution
    that we do support, such as normal OpenSUSE-Leap or Ubuntu or CentOS etc. Your release is dated 12/28/2020. We cannot be assumed to support something like that.

    However, you can still copy the data base even with a symbolic link. Either do

    tar cvf /tmp/varlibrpm.tar /var/lib/rpm/ (don't forget the trailing /)
    or
    cp -axL /tmp/var/lib/rpm /tmp/varlibrpm ("-L" dereferences soft links)

    Have fun :)

Categories

Upcoming Training