Package Installations : Exercise
Here is a simplified alternative to the package installation problem that doesn't pair packages with versions. Instead, the conflicts between packages are listed explicitly.
Fill in the parts marked fill_this_in
as follows:
Complete the definition of
depends
to express that packagep
depends on packagedependency
Complete the definition of
conflict
to express that packagep1
and packagep2
cannot be installed simultaneously.Complete the definition of
depends_or
to express that packagep
depends on packagedependency1
ORdependency2
.Complete
dependencies_and_conflicts
to express:ChatServer
depends onMailServer
orMailServer2
ChatServer
depends onDatabase1
orDatabase2
MailServer1
andMailServer2
conflictDatabase1
andDatabase2
conflictGitServer
depends onDatabase2
Complete
requirements
to express thatChatServer
andGitServer
must be installed.
There should be two possible satisfying assignments when you click "Run".