How to install an old package without project.toml and manifest.toml?

I have an older package that I would like to use (, but when I try to install it using the Pkg I get this error.

(@v1.4) pkg> add LinearLeastSquares
   Updating registry at `C:\Users\dadada\.julia\registries\General`
   Updating git-repo ``
ERROR: The following package names could not be resolved:
 * LinearLeastSquares (not found in project, manifest or registry)

Is there any automatic way to generate the needed files and install it?

You can simply add it via the github link. Have a look at the Pkg docs.


So far, we have referred only to registered packages. Pkg also supports working with unregistered packages. To add an unregistered package, specify a URL:

(v1.1) pkg> add

Use rm to remove this package by name:

(v1.1) pkg> rm Example

e.g. ] add


Thanks for the reply. I tried that and it did not work, unfortunately.

(@v1.4) pkg>  add
   Updating git-repo ``
ERROR: could not find project file in package at

It seems something related to the project.toml file that is missing.

Then maybe clone the repo via git and use it as a local package.

Opening an issue is very unlikely to help here since the last commit was 3 years ago and it might some time for the maintainer to get back to you.

1 Like

I don’t think that will work without a project file.

Adding one, however, is unlikely to be enough to make this package work in Julia 1.x, since it was written for Julia 0.6 and may require some updating to the code.


See the first blue box here