Install Cydia Package Without Dependencies

Active1 year, 10 months ago

# yum install dovecot –noplugins Setting up Install Process Parsing package install arguments Resolving Dependencies –> Running transaction check —> Package dovecot.i386 0:1.0-1.2.rc15.el5 set to be updated –> Finished Dependency Resolution. Dependencies Resolved ===== Package Arch Version Repository Size. Step 4 Install Cydia Extender Installer package (latest version). Make sure you use the latest version of this installer. Make sure you use the latest version of this installer. It’s older version 1.7 was throwing errors for a lot of users.

Suppose I need to install a number of packages on a (Linux) machine that does not have an internet connection. Let's say that I downloaded a copy of cran and burned it on a DVD that I bring to the offline location:

I can even add a PACKAGES file that contains an overview of all the source packages and their dependencies:

How could I use this offline to install a source package in such a way that dependencies are resolved and installed from the local files as well? For example, someone wants to install package ggplot2, which has a fairly deep dependency structure. Assume the source package of ggplot2 and all of its dependencies are available as source packages in the current working directory. If I do:

This results in an error, because the dependencies are not resolved at all. Alternatively:

However this also ignores the dependency structure, and tries to install packages in alphabetical order, which will also fail.

I looked into available.packages and contrib.url but I just can't find an example of installing a source package from a local file including it's dependencies.

JeroenWithoutJeroen
17.1k30 gold badges100 silver badges171 bronze badges

3 Answers

The correct answer was given by Joshua Ulrich in the comment on the question:

The key is prefixing the argument to either repos or contriburl with file://. So in Unixy systems one could do:

This assumes that all required source packages, as well as a PACKAGES index file is available in /path/to/packages. If no PACKAGES file is present, this should be generated first using:

which will generate an index of all source packages found in this directory. Note that in the example, there are 3 slashes behind the file: prefix. The third slash indicates a path relative to the root of the file system.

The difference between the repos and contriburl argument is that repos will append another /src/contrib to the path specified, as this is usually where source packages are located on an official CRAN repository mirror.

JeroenDpkg install dependenciesJeroen
17.1k30 gold badges100 silver badges171 bronze badges

With reference to Answer above, if installation is in Windows, then write_PACKAGES() generates two files: PACKAGES and PACKAGES.gz under '/path/to/packages/' directory where all zip files are placed. The file PACKAGES.gz should be deleted before install.packages() function is correctly able to read the lone PACKAGES file else 'cannot open compressed file' error appears.

Nuget install package dependenciesuser3282777user3282777
5272 gold badges7 silver badges21 bronze badges

I had the same issues during offline installation. Somehow it didn't work by command line.

I downloaded, extracted all the dependencies (Keeping check of the min version required) and pasted the folders in the library folder. This way only my problem got solved.

Shekhar SahuShekhar Sahu

Install Dependencies R

Not the answer you're looking for? Browse other questions tagged rcran or ask your own question.