The application relates to a
software package installation method and a
software package installation device. The method comprises the following steps: obtaining attribute information of a
software package to be installed based on a
software package installation request input in a
software package management tool, and then querying the attribute information of the
software package to be installed in a software package index tree; then, determining a
list of dependent software packages of the software package to be installed from a dependency
database in the case that the attribute information of the software package to be installed exists in the software package index tree; and finally, executing an installation step of the software to be installed based on the
list of dependent software packages. The leaf node of the software package index tree is attribute information of a plurality of software packages; the dependency
database stores key-value pairs of each software package; and the key-value pair of each software package comprises attribute information of the software package and a
list of dependent data packages. The method can improve the software package installation efficiency.