EconPapers    
Economics at your fingertips  
 

PKGTRANSFER: Stata module to rebuild an installed package setup on another machine, online or offline

Timothy P Copeland ()
Additional contact information
Timothy P Copeland: Karolinska Institutet

Statistical Software Components from Boston College Department of Economics

Abstract: pkgtransfer transfers the user-written packages installed in one Stata installation to another. It reads stata.trk in the current PLUS directory to identify installed packages and their sources, including SSC, personal websites, and GitHub, and writes a do-file of the ssc install, net install, and github install commands needed to reinstall them online on a new machine. Alternatively, download(online) downloads every package file from its source, or download(local) copies it from the local PLUS directory, and builds a local installation script and a ZIP archive for offline installation, and the restore option restores the online source URLs in stata.trk after an offline install. Options restrict or exclude packages, choose the target operating system for plugin filtering, name the generated do-file and ZIP archive, and allow existing output to be overwritten. The output records package sources, not a snapshot of package versions. Results returned in r() include the number and list of packages processed, the download mode, the target operating system, and the names of the generated do-file and ZIP archive.

Language: Stata
Requires: Stata version 16
Keywords: package management; installation; reinstall; migration; offline installation; stata.trk; SSC; GitHub; net install (search for similar items in EconPapers)
Date: 2026-10-30
Note: This module should be installed from within Stata by typing "ssc install pkgtransfer". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/p/pkgtransfer.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/p/pkgtransfer.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459961

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-11-03
Handle: RePEc:boc:bocode:s459961